auto updater, add a flag to NOT restart the app after update (e.g. "update on quit") ?
See original GitHub issueHello;
the autoUpdater has quitAndInstall
which restarts the app when the update is done. I would like to give user the option to install update when they quit the app (and, therefore, prevent the automatic restart of the app)
My suggestion is, when download is finished to give user the option to “update now!” (calls existing quitAndInstall
and restarts the app as expected; or second option “update on quit” : set flags autoUpdater.autoRestart = false
and I can trigger the same quitAndInstall
when the user is closing the last window.
Background: user can have several windows open with changes not saved, etc. so we are not keen on interrupting the user all the time.
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Creating and deploying an auto-updating Electron app for ...
Let's create a new Electron app. Create a new directory for your app, I'm calling mine “electron-auto-update-example”, and inside it, ...
Read more >Update non-Store published apps from your code - MSIX
Automatically restarting your app after an update If your application is a UWP app, passing in AddPackageByAppInstallerOptions. ...
Read more >Auto Update - electron-builder
Restarts the app and installs the update after it has been downloaded. It should only be called after update-downloaded has been emitted. Note:...
Read more >Writing my own Auto Updater [closed] - Stack Overflow
I don't mind restarting an app after an update (makes sense to me; put me in your 'not complaining' list). But I DO...
Read more >Update instance properties - Compute Engine - Google Cloud
For example, to add a disk to an instance you must have the following permissions: ... Updates to some properties require the instance...
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 Free
Top 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
Do not bother user — simply download, notify using system notification and nothing more. Update will be installed on app quit. https://github.com/electron-userland/electron-builder/wiki/Auto-Update#examples “using system notifications.”
That’s why we do not recommend call
quitAndInstall
. 👍