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

PSF does not work when app requires UAC prompt #237

Open EdijsPerkums opened 1 year ago

EdijsPerkums commented 1 year ago

Hello, I have an app that needs to be started with admin rights so I get a UAC prompt, but when I add PSF to the package the application does not launch at all anymore. Even if I manually right click and select run as admin. I have set the <rescap:Capability Name="allowElevation" /> capability in the MSIX package and it runs fine if PSF is not added.

Maybe a solution would to provide 2 more PSF launchers that prompt for UAC?

TimMangan commented 1 month ago

@EdijsPerkums : The standard approach is to add a PsfLauncher ".config" file next to the copy of PsfLauncher to request the elevation. But the issue should remain open as that needs to be documented.