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.

Calling autoUpdater.checkForUpdates() multiple times causes existing download to be wiped

See original GitHub issue
"electron": "1.6.11"
"electron-builder": "^15.0.0"
"electron-updater": "^1.8.1"

(I’ve updated all the above versions after posting this issue; not sure if updating fixes it yet)

I call autoUpdater.checkForUpdates() when the app window appears.

I noticed sometimes the Mac app doesn’t update, even after the update is downloaded (no issues in the logs). I found that after the update-downloaded event is received, if I call autoUpdater.checkForUpdates() again, then quit the app before the download is finished, then the auto-update will not be installed.

I think calling checkForUpdates() will begin downloading the update, even if it has already been downloaded before. Based on the observed behavior, it looks like it deletes any currently downloaded updates immediately.

Instead, I think it should delete the old update only after the new one has finished downloading.

Can you confirm this behavior?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Aug 28, 2017

Already fixed in the latest versions. Please upgrade.

0reactions
cyphercodes96commented, Nov 27, 2019

Windows NSIS same issue

Dev Dependencies:

“electron”: “^4.2.9”, “electron-builder”: “^21.2.0”, “electron-download”: “^4.1.1”, “electron-publisher-s3”: “^20.15.0”, “electron-reload”: “1.4.0”,

Any resolutions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron auto updater downloading multiple builds
When an update is downloaded. After user updates the app, it's installer is still available and not removed. (Ex:- running on version 1.0.0,...
Read more >
NissanConnect Support & FAQ | Nissan USA
Have a question about NissanConnect feature functionality or setup? Explore our FAQs, such as subscription information, smartphone compatibility, and more.
Read more >
Microsoft Edge Browser Policy Documentation
These tables list all of the browser-related group policies available in this release of Microsoft Edge. Use the links in the table to...
Read more >
XDS Emulation Software (EMUPack) Download
This page contains drivers and utilities to support TI XDS class Debug Probes..
Read more >
An efficient way for automatic updating - CodeProject
A simple way to provide silent automatic updates with no server side code.
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