How to execute a GUI application as elevated user (Administrator) after install #7880
Unanswered
StefanoBalzarottiNozomi
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to start a GUI application as Elevated user (Administrator) after install finalizes, and I want also to check the exit code of the application.
I know on a CustomAction you can set Impersonate to false to execute it as SYSTEM user. But my application cannot run as SYSTEM user, it needs to be executed as Administrator or elevated user.
If instead I set Impersonate to true, the app is started as regular user and UAC is not shown, so my application has not enough rights to be executed.
The only trick that I found is to launch my application through cmd, but in this way I lose the exit code, and setup completes successfully before my application is started.
Beta Was this translation helpful? Give feedback.
All reactions