question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

auto updater, add a flag to NOT restart the app after update (e.g. "update on quit") ?

See original GitHub issue

Hello; 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
develarcommented, May 26, 2017

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.”

2reactions
develarcommented, May 26, 2017

user can have several windows open with changes not saved, etc. so we are not keen on interrupting the user all the time.

That’s why we do not recommend call quitAndInstall. 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found