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

Users/snigdhalnu/psf admin changes #256

Closed snigdha01091997 closed 6 months ago

snigdha01091997 commented 7 months ago

Why were the changes made?

PSF does not work when app requires UAC prompt. To support the applications requiring admin privileges to launch

What changed?

Added a functionality to launch application with UAC prompt if launching them normally fails. To use API ShellExecuteEx rather than CreateProcessW to launch application in admin mode.

How were the changes tested?

Performed test with msix requiring admin privileges.