Update is downloaded but not installed, if application was installed for all users (in Program Files) on Windows
See original GitHub issue- electron-builder: 22.1.0
- electron-updater: 4.2.0
- Target: nsis
Settings:
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"allowElevation": true,
...
}
Steps to reproduce:
- Build electron app, and put the version to lets say 1.0.0;
- Build nsis target and artifacts for auto-update (latest.yml);
- Build the app again, put the version to lets say 1.0.1, also build artifacts (latest.yml);
- Upload the 1.0.1 version to your server, or wherever, just so 1.0.0 can see it;
- Launch the 1.0.0 app. Wait for the update to download, app relaunches to update. So far so good.
- Now, if the app was installed for single user (to C:/Users/User/AppData/Local/Programs/…) everything is fine, the app is uninstalled, then the 1.0.1 version is installed, all good. But if the app was installed for all users (to C:/Program Files/…) the UAC dialog launches, asking for permission (as expected), the app is uninstalled (as expected), but then it is not installed again (totally unexpected). No errors, no warning, no nothing.
I will be happy to provide any other info if needed.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:17
Top Results From Across the Web
User unable to update a program in program files after ...
I have a program installed in the Program Files (x86) folder that is prompting me there is an update available and when I...
Read more >Unable to Install Apps or Software on Windows? Here's ...
To do this, head to Settings > Apps > Apps & features. At the top, you'll see a Choose where to get apps...
Read more >Deploy Slack via Microsoft Installer
The MSI for single installation deployment installs Slack for Windows machine-wide, either to Program Files or a location of your choice. It is...
Read more >Deploy Google Drive for desktop
Install Drive for desktop on each user's computer using one of these options: ... Download the .exe file and deploy it in silent...
Read more >4. Using Python on Windows — Python 3.11.1 documentation
These installers are primarily intended to add a per-user installation of Python, ... Python will be installed into the Program Files directory.
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
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"
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?