Update loop in windows
See original GitHub issueHi! I have no idea where i should report it, so i start here with the hope that somebody can help.
I have packaged my windows app with electron builder and i’m using Squirrel.Windows for auto-updates. I’ve put everything from the release to the FTP and set the URL properly. But now when I start the windows app its in an update loop. It downloads the 1.0.0 every time again.
Does someone has an idea how it happened?
859E5121E95B411FA2107DF3A59E3880D4E9EA0B myapp-1.0.0-ia32-full.nupkg 45302165
Main app index.js (i ommited unreleated code)
if (require("electron-squirrel-startup")) {
return;
}
app.on('ready', function() {
// create new browserwindow
// search for updates
const updateFeed = os == "darwin" ? "https://HOST/updates/latest" : "https://HOST/releases/win32";
const autoUpdater = require('auto-updater');
autoUpdater.on("update-downloaded", function() {
autoUpdater.quitAndInstall();
});
autoUpdater.setFeedURL(updateFeed + '?v=' + app.getVersion());
autoUpdater.checkForUpdates();
});
I am building the windows distribution with OSX (Vine) with the following command: build --platform win32 --arch ia32
OSX is working fine.
Issue Analytics
- State:
- Created 7 years ago
- Comments:39 (18 by maintainers)
Top Results From Across the Web
Windows update stuck in continuous loop
Shut down the Computer. · Remove all power source (including battery if it is a laptop). · Press and hold the power button...
Read more >How to fix a stuck Windows 10 update - IT PRO
Using Ctrl-Alt-Delete to fix a stuck Windows 10 update · Press the keys 'Ctrl', 'Alt', and 'Delete' on your keyboard at the same...
Read more >Windows 10 Update Infinite boot Loop (Installing the same ...
Fix Windows 10 Infinite Boot Loop · Press on the Win + I on the keyboard. It will open the Settings window. ·...
Read more >Restart your computer to install Windows 10 updates loop fix
Restart your computer to install Windows 10 updates loop fix ; Search for regedit.exe and open it · Once you have reached the...
Read more >Windows 10 update failed loop
"Windows 10 update failed loop" may be caused by a Windows Update where Windows 10 was damaged. Try to use Windows 10 System...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It took me about 5 minutes to get OS X updates working… For Windows i spent a day to find out that it is because i only uploaded the x86 version… Yes i think its ok to generate it because its required.
I wrote a blog post about building and deploying app, and it supports both 32 and 64 versions of Win: http://electron.rocks/building-and-deploying-application/
Hope it helps, best, Vjeko