-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-update not working on WIN10 #2977
Comments
Confirming this bug on the latest versions of electron / electron-updater / electron-builder. Thanks to @marceloavf for reporting in the other mentioned issue a working combo of versions:
Somewhere when downloading current electron-updater dies. |
If you are using |
@peterdanis @develar where is this documented in the docs? I'm having so much problems with this, it actually never worked and it is so hard to test (I need to build and push every time 2 releases, the first containing the logic update to test and the second to test the update itself!). My app just shuts itself down after downloading the
Logic is trimmed down from original post down to:
I see a similar weird behaviour if I:
The app is closed and the installer exits before the last page (the one prompting the "run application flag"). Any thoughts? Not sure why this issue was closed though 😅 |
@damianobarbati I assume you don't use the code which you posted in the first comment (with both For testing purposes you can "fake" app version by setting |
@peterdanis thanks for helping. You're correct, actual code is trimmed down to:
How can I fake the upgrade like that? I always need to:
|
@peterdanis may this be the cause in some way? Does
|
For testing:
No need to push it to Github. |
Smart move, thanks @peterdanis! I'm packing locally triggering the update without pushing to GitHub. However the app just dies in the middle of downloading update with no error. Any idea? I've run out of ideas 😔 |
Do you want some help, for example: I have an application that can update what this server does not, but it downloads that update but does not update, something that is missing? follow my .json and main.js
The .logs file looks like this ...,
|
Here what I'm experiencing:
Code:
Here what
log.log
in%appdata%
says:I can see a temp.exe file in the app data folder:
But If I try to open it manually I get the following:
![screen shot 2018-06-04 at 16 02 34](https://user-images.githubusercontent.com/2225869/40921764-b697b530-6810-11e8-8037-dea48eeae14f.png)
I see the temp-installer.exe is just 5MB while the .exe in the release on GitHub is 44MB.
I'm not sure whether a differential download is made (is this possible?) but I think the file download failed without firing the 'error' event (resulting a corrupted .exe file).
Furthermore
update-downloaded
event is not logged, so probably the app is not closed by theautoUpdater.quitAndInstall()
call?What do you think? Is this a bug?
Versions and nsis config:
The text was updated successfully, but these errors were encountered: