electron-builder: Windows: quitAndInstall() quits the application but fails to launch installation process
- Electron-Builder Version: 23.3.3
- Node Version: 16.16.0
- Electron Version: 19.0.10
- Electron Type (current, beta, nightly): current
- Target: Windows
We are seeing an issue where quitAndInstall() quits the application but fails to install in one go on windows. Works fine on Mac which leads me to think the issue is within NsisUpdater.
Logs below:
[2022-08-23 13:02:28.518] [info] installing update ...
[2022-08-23 13:02:28.518] [info] Install on explicit quitAndInstall
[2022-08-23 13:02:28.519] [info] Install: isSilent: false, isForceRunAfter: true
[2022-08-23 13:02:28.519] [info] isAdminRightsRequired is set to true, run installer using elevate.exe
[2022-08-23 13:02:28.590] [info] Update installer has already been triggered. Quitting application.
After this, the app quits but doesn’t launch the installation process. Next startup launches the old version and installation process is then launched and completes successfully after manually quitting the application.
Based on logs and a quick look at source-code, seems like NsisUpdater::callUsingElevation() fails silently somehow.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (5 by maintainers)
same issue here - windows only. Installer starts, app quits, and then the app is uninstalled (desktop shortcuts remain, broken) and nothing is installed after
If anyone else has been looking for how to solve the problem for days. This comment saved me. Thank you. In general, it is worth adding this to the documentation
if anyone finds this i had this
problem:
windows app quits, Installer starts, and then the app is uninstalled (desktop shortcuts remain, broken) and nothing is installed after
my solution:
add the version in the name of the app “artifactName”: “${productName}-${version}.${ext}” this solved my problem for some reason