-
-
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
Windows 10 autoUpdater not installing update #1640
Comments
As electron-updater 2 was released only a week ago, please use electron-builder 18.6.0 and latest electron-updater 2.1 No — your code is not quite correct — please do not call autoUpdater methods from dialog message box handler, please use setImmediate. #1604 (comment) |
Updated to 18.6.2 and 2.1.2 and got the same behavior (this version works well on MacOS -- as before). Adjusted autoUpdater.addListener("update-downloaded", (info) => {
log.info("A new update is ready to install: ", info);
if (!mainWindow.isVisible()) {
showWindow()
}
dialog.showMessageBox({
type: 'info',
title: 'Bark Update',
message: 'A new version of ' + app.getName() + ' is ready to install!',
buttons: ['Install and Restart', 'Not now'],
defaultId: 0,
cancelId: 1,
}, (buttonIndex) => {
log.debug('User responded to update restart request with ' + buttonIndex);
if (buttonIndex === 0) {
setImmediate(() => {
app.removeAllListeners("window-all-closed")
if (mainWindow != null) {
mainWindow.close()
}
autoUpdater.quitAndInstall(false)
})
}
}); |
I tried a few more changes within the dialog and it went further this time, but now I got the error below. Any insight would be super helpful. I'm using the following script to release:
|
Closing in favor of #1641 |
I've put together autoUpdating for my app with message dialogs triggered from a menu and it works great on MacOS. However, on Windows, after accepting to download the update, it never installs:
I've given it a lot of time and it just sits there. On start of the app i have it to check for updates too, and the same thing will happen --- it'll prompt there's an update and I'll choose to download and it'll leave off at the same place in the logs above.
Here's the code that runs autoUpdate, anything more I can enable to see what's going on?
The text was updated successfully, but these errors were encountered: