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]: autoUpdater.download() downloads _and_ installs update

See original GitHub issue

22.6.0

  • Electron Version: 8.2.0
  • Electron Type (current, beta, nightly): current

4.3.1

  • macOS

I’ve integrated with the auto updater events in electron-builder to build my own auto-update UI. I have separate steps for downloading and installing the update. Which I am performing by calling autoUpdater.downloadUpdate() and autoUpdate.quitAndInstall() respectively.

However, it appears that as soon as the update is done downloading after calling downloadUpdate the update is installed. Is it possible to change this behaviour on macOS?

I see that there is the autoUpdater.autoInstallOnAppQuit setting to turn this off, but it doesn’t support macOS.

Are there any alternatives here? How come I can’t disable this functionality on macOS?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
UberMousecommented, May 22, 2020

Seconded. I manually applied your PR with patch-package so at least one other company is using it! I can confirm it’s been working without any problems for us.

1reaction
grecommented, Jan 1, 2021

YES

Read more comments on GitHub >

github_iconTop Results From Across the Web

ravibpatel/AutoUpdater.NET - GitHub
AutoUpdater.NET downloads the file provided here and install it when user press the Update button. changelog (Optional): You need to provide URL of...
Read more >
How to use the electron-updater.autoUpdater.on function in ...
autoUpdater.on examples, based on popular ways it is used in public projects. ... is downloaded autoUpdater.on('update-downloaded', () => { progressBar.
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 >
Electron auto updater downloading multiple builds
I am not forcing my users to install the application when a new update is downloaded. Instead Installing of updated app will start...
Read more >
nw-autoupdater - npm
Start using nw-autoupdater in your project by running `npm i ... the app and launches the downloaded release; isSwapRequest() - checks if we ......
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