electron-builder: Auto updater downloads the update but fail to install it
Versions : Electron-builder : i tried both v22.20 and v22.1.0 Electron-updater : v4.2.0 Electron : v7.1.4
Error i’m having :
[2019-12-11 10:49:07.004] [info] Checking for update [2019-12-11 10:49:07.185] [info] Generated new staging user ID: ef86f7bb-c82a-5220-aabc-7355cfe52688 [2019-12-11 10:49:10.537] [info] Found version 0.3.3 (url: plazamoddingtoolkit-setup-0.3.3.exe) [2019-12-11 10:49:10.544] [info] Downloading update from plazamoddingtoolkit-setup-0.3.3.exe [2019-12-11 10:49:10.553] [debug] updater cache dir: C:\Users\Administrator\AppData\Local\plazamoddingtoolkit-updater [2019-12-11 10:49:10.564] [info] No cached update info available [2019-12-11 10:49:10.572] [info] Download block maps (old: "https://github.com/TheModdingPlaza/ModdingToolkit/releases/download/v0.3.2/plazamoddingtoolkit-setup-0.3.2.exe.blockmap", new: https://github.com/TheModdingPlaza/ModdingToolkit/releases/download/v0.3.3/plazamoddingtoolkit-setup-0.3.3.exe.blockmap) [2019-12-11 10:49:10.826] [error] Cannot download differentially, fallback to full download: Error: Redirect was cancelled at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:2561:23) at SimpleURLLoaderWrapper.emit (events.js:203:13) [2019-12-11 10:49:11.091] [error] Error: Error: Redirect was cancelled at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:2561:23) at SimpleURLLoaderWrapper.emit (events.js:203:13)
My Code :

Well, i don’t know what to do … can someone help?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 15 (2 by maintainers)
Commits related to this issue
- Electron 6.x because of https://github.com/electron-userland/electron-builder/issues/4526 — committed to matthiasn/lotti by matthiasn 5 years ago
- Electron 6.x because of https://github.com/electron-userland/electron-builder/issues/4526 — committed to matthiasn/lotti by matthiasn 5 years ago
Any update on this? Is there any maintainer alive? Currently, there seems to be no workaround for developers who need to be on the newest Electron version.
@sidneys i guess it is only difference is that my target is windows …
I had the same problem with Electron: 7.1 and electron-builder: 21.2.
I created a fork of electron-builder 21.2 and reverted commit 39e6783 and then the auto-update worked again. So for me, something in that particular commit was problematic. Unfortunately I don’t know enough about Windows/NSIS to say what exactly.
@iJosephY Yes, it is strange, there might be other things interfering. Possibly during dependency resolution. I have been able to see that it works also for electron 6.1.6. But as soon as I pass to electron 7, it breaks.