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.

NSIS with oneClick set to true does not relaunch the app after update

See original GitHub issue
  • Version: 7.21.0
  • Target: Windows NSIS

Description of the problem: Windows NSIS with oneClick set to true does not relaunch the app after update (using quitAndInstall). On the other hand, using the same build for OSX (Squirrel.Mac) it relaunches the app after updating (using the same code of quitAndInstall). This confuses the customer as there is no installergif or validation that the update is done.

Configuration looks like:

"build": {
    "appId": X
    "asar": false,
    "category": X
    "win": {
      "target": "nsis"
     },
     "nsis": {
      "guid": X,
      "oneClick": true
    }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
SxMShaDoWcommented, Nov 5, 2016

I wasn’t going to be picky, but the install update showing progress would be great! An installer gif or a progress bar (similar to a normal install) would be awesome.

1reaction
develarcommented, Nov 19, 2016

Fixed in electron-auto-updater 0.6.0.

Please note — currently, app will be relaunched only if you don’t set runAfterFinish to false (defaults to true, if you didn’t customise it, don’t worry).

Read more comments on GitHub >

github_iconTop Results From Across the Web

NSIS - electron-builder
If oneClick is false and perMachine is true : no install mode installer page, always install per-machine. If oneClick is false and perMachine...
Read more >
Make electron app oneClick for updates but not for first ...
It all works except when the updater is running, it first asks the users where does he want to install the software and...
Read more >
Chapter 4: Scripting Reference
A NSIS Script File (.nsi) is just a text file with script code. ... When there are no uninstaller page commands the following...
Read more >
Run Electron applications with admin privileges in Windows
Electron Builder + Task Scheduler = Run as admin without UAC.
Read more >
Top 5 electron-builder Code Examples - Snyk
Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately. ... indexOf("GitHub Personal Access Token...
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