"electron-updater": "^4.1.2",
"electron": "^6.0.0",
"electron-builder": "^21.2.0",
I write code
app.on('window-all-closed', () => {
// do nothing. prevent exit.
})
Check update. Update Progress half and exit. No log output. Just installer programmer exit.
And I remove app.on('window-all-closed')
It is works fine.
I'm having the same problem...
@cegonzalv
Temporary solution:
autoUpdater.quitAndInstall()
app.exit()
Experiencing the same problem here on Windows 64bit.
Update gets downloaded => autoUpdater.quitAndInstall() => Installer starts and dies without an error message half way though.
If I run the installer exe direct from the pending folder in APPDATA, the update works fine, so the installer files are fine, but there seems to be a problem when updating _while_ the electron app is running. Maybe autoUpdater.quitAndInstall() is misbehaving somehow or not really quitting?
I have tried the various suggestions; removing window-all-closed and adding app.exit() but every time the installer continues to die half way through.
Any ideas?
Same problem here... Tried both solutions without any success.
Ended up going back to electron-builder version 20.44.4
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi. @upjersdave, Same problem. Did you solve this issue ?
We are having the same issue on the following versions too
"electron-updater": "4.2.2",
"electron": "7.1.8",
"electron-builder": "22.2.0",
@cegonzalv
Temporary solution:autoUpdater.quitAndInstall() app.exit()
After all it's working!
Most helpful comment
@cegonzalv
Temporary solution: