microsoft / MSIX-PackageSupportFramework

The Package Support Framework (PSF) is a kit for applying compatibility fixes to packaged desktop applications.
MIT License
114 stars 57 forks source link

Error messages for config.json and StartingScriptWrapper.ps1 #231

Closed snigdha01091997 closed 1 year ago

snigdha01091997 commented 1 year ago

Why is this change being made? 

When PSF is applied to an MSIX application and if config.json is not added, proper error popup is not shown to user which might cause confusion to user in figuring out why the application fails to launch.

When user tries to execute power shell script through PSF, it is mandatory to include 'StartingScriptWrapper.ps1' as it triggers the actual user power script file. But when user missed to include this file, no appropriate error message is displayed to user which makes it difficult to find the root cause of his power shell script failing to execute. Hence, showing proper error message will solve this problem.

What changed? 

Added error messages for missing config.json and StartingScriptWrapper.ps1

How was the change tested?

Manually tested in local by making sure popup messages are properly displayed to users when the above files are missing.