Set UAC Execution Level
See original GitHub issueI’m not 100% sure if this isn’t possible now, but I can’t find it. In our electron app, we are using a native library that requires settings the UAC Execution Level to Administrator. (For the moment, we are testing this by right-clicking on the exe and running as administrator directly). We would like this to be baked into the manifest of the exe. I’m not sure if this can be done via nuspec or not.
Is this currently possible with windows-installer electronWinstalerConfig
? If not, what would it take to add it – with some initial guidance I would be willing to have a go at adding it.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
MANIFESTUAC (Embeds UAC information in manifest)
Select the Configuration Properties > Linker > Manifest File property page. Modify the Enable User Account Control (UAC), UAC Execution Level, ...
Read more >Windows User Account Control (UAC) - Advanced Installer
Beware, if you do not set an execution level information your application might be easily mistaken as an application that needs administrator privileges....
Read more >Why Set UAC Execution level to asInvoker is not effect?
If a manifest actually is correctly asking the OS to run the application asInvoker , then it's likely because the result of the...
Read more >Allowing your Visual Studio project to run as administrator
There is a setting in Visual Studio to make your program ask what UAC level to run at. Go to Project > Properties....
Read more >Run as an Administrator and UAC: What You Need to Know
The User Access Control (UAC) works through six integrity levels that include the following ... Set Your Programs to Always Execute as Admin....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is not typically possible because this will break Squirrel.Windows. You could technically make an app that is elevated-by-default, then make a helper EXE that sets up shortcuts for you, but to be honest, you would do better to either put your UAC operations into a separate helper EXE, or use a different installer.
any solution?