question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set UAC Execution Level

See original GitHub issue

I’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:open
  • Created 5 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
anaisbettscommented, Aug 4, 2022

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.

0reactions
MrSharppcommented, Aug 4, 2022

any solution?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found