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.

Electron updater not success and restart when use app.on('window-all-closed')

See original GitHub issue
  • Version:
    "electron-updater": "^4.1.2",
    "electron": "^6.0.0",
    "electron-builder": "^21.2.0",
  • Target: Windows 10

I write code

app.on('window-all-closed', () => {
    // do nothing. prevent exit.
})

Check update. Update Progress half and exit. No log output. Just installer programmer exit.

And I remove app.on('window-all-closed') It is works fine.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:8

github_iconTop GitHub Comments

8reactions
puroceancommented, Aug 16, 2019

@cegonzalv Temporary solution:

autoUpdater.quitAndInstall()
app.exit()
0reactions
jmit-moderncommented, Apr 28, 2020

@cegonzalv Temporary solution:

autoUpdater.quitAndInstall()
app.exit()

After all it’s working!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron auto update fails silently when installing ...
During installation of the update, the progress bar fills up halfway, then disappears. The app remains closed and does not automatically ...
Read more >
Electron auto update introduction - Philo's Blog
Step by step guide on using Electron Auto Update to distribute new versions of your application to your users.
Read more >
4. Binaries, Installers, and Updates - Introducing Electron ...
Baked into the operating system, updates can be downloaded without the application running, and because they are installed by the operating system, chances...
Read more >
How to License and Distribute an Electron App
Learn how to license and distribute a commercial Electron app using Keygen's software licensing and distribution API.
Read more >
Code42 app does not run
Code42 CrashPlan cannot connect to its background service error ...you might have one of the following situations: You are using the 32-bit ...
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