"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"allowElevation": true,
...
}
Steps to reproduce:
I will be happy to provide any other info if needed.
Indeed very strange. Can you try to start your exe from command line and see what happen in the console? Did you already try on another PC?
@kzimny What exe and when exactly? The main app exe? Or the app installer exe? It installs totally fine to any location, when installed manually.
Probably worth mentioning, the app-updater folder (in C:/Users/User/AppData/Local/app-updater/pending/update-info.json) has the property "isAdminRightsRequired": false, shouldn't it be set to true, actually, if the app is installed in the Program Files for all users?
The exe file launch in step 5 from C:/Program Files/MyApp/myapp.exe.
Look at https://github.com/electron-userland/electron-builder/issues/4312. Maybe similar issue?
Okay, running it as Administrator allows it to install properly. I think it is the same as #1129
@develar Can you look into this?
@DominikLevitsky did you solve this?
Not sure is related but my NSIS installer just dies in the middle of installation progress, no matter if I run it as administrator. NB: it starts installing.
This is breaking my users auto-update (and causing an infinite loop of installations...).
How can I debug the NSIS installer created by electron-builder?
"nsis": {
"oneClick": false,
"perMachine": true,
"allowElevation": true,
"deleteAppDataOnUninstall": true,
}
...
"electron": "^7.1.3",
"electron-builder": "21.2.0",
@damianobarbati We solved the install issue using this:
"win": {
...
"requestedExecutionLevel": "highestAvailable"
}
But it seems like a temporary solution only, because now, it always asks for admin permission on every app opening, which is not acceptable. I wish someone could help to fix this.
@DominikLevitsky thanks for helping. Unfortunately that's not working for me, the installer keep just dying.
解决了吗?
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
We also have this problem.
some infos @adambailey- ? @damianobarbati
Same issue here. Anyone willing to work on this? Any useful pointers?
PS: I'm using "electron-builder": "^22.8.0" and "electron-updater": "^4.3.4"
Most helpful comment
Probably worth mentioning, the app-updater folder (in C:/Users/User/AppData/Local/app-updater/pending/update-info.json) has the property "isAdminRightsRequired": false, shouldn't it be set to true, actually, if the app is installed in the Program Files for all users?