-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to set ExecutionLevel for nsis portable #1440
Comments
Hmm... Interesting. Are you sure that your app needs admin privilege for all run time? I strongly recommend you to use UAC when admin rights is required. Please see https://github.com/automation-stack/electron-sudo |
Hi @develar |
Solution: You can expect it in 2 days. |
awesome, thank you for the quick support. |
Hi, right now it is not possible to distribute portable app that needs admin privilege.
The only way is monkeypatching the portable template here: https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/templates/nsis/portable.nsi#L5
As far as i see it is not even possible to use a custom script for portable app because if the target is
portable
thescript
option will not be considered.https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/src/targets/nsis.ts#L178
Is this something that could be fixed or is there another way i'm not aware of?
The text was updated successfully, but these errors were encountered: