Appacker icon indicating copy to clipboard operation
Appacker copied to clipboard

requireAdministrator properties not carrying over

Open okaa-0 opened this issue 2 years ago • 1 comments

requireAdministrator properties aren't carried over. Maybe add a setting to force files to require admin privelages?

okaa-0 avatar Jun 21 '23 05:06 okaa-0

From what i tested it seems to be working with admin rights mostly correctly. There's one exception. So far i tried:

  1. Pack an app that doesn't require elevated privileges and then launch package regularly and as administrator. This results in target app getting regular and admin rights respectively.
  2. Then i tried to pack an app that requires elevated privileges through its app manifest file (<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />). When launched, UAC asks for admin rights for the target app.

However, i found that in the second test if you select Use windowless unpacker in Advanced options when creating a package (and that's a default option currently), then when you run package UAC doesn't ask for admin rights and it seems that app crashes, because unpacked files are not removed from the Temp directory. I couldn't find where it crashes yet, but i suspect that using windowless launcher interferes with UAC admin prompt.

Is this the same situation as what you described? Try to pack your app without using the windowless unpacker and see if it works that way.

image

I agree that it would be good to have an advanced option for forcing admin privileges, though. I will add it whenever i will make the next version.

SerGreen avatar Jun 21 '23 18:06 SerGreen