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.

Update is downloaded but not installed, if application was installed for all users (in Program Files) on Windows

See original GitHub issue
  • electron-builder: 22.1.0
  • electron-updater: 4.2.0
  • Target: nsis

Settings:

    "nsis": {
      "oneClick": false,
      "allowToChangeInstallationDirectory": true,
      "allowElevation": true,
      ...
     }

Steps to reproduce:

  1. Build electron app, and put the version to lets say 1.0.0;
  2. Build nsis target and artifacts for auto-update (latest.yml);
  3. Build the app again, put the version to lets say 1.0.1, also build artifacts (latest.yml);
  4. Upload the 1.0.1 version to your server, or wherever, just so 1.0.0 can see it;
  5. Launch the 1.0.0 app. Wait for the update to download, app relaunches to update. So far so good.
  6. Now, if the app was installed for single user (to C:/Users/User/AppData/Local/Programs/…) everything is fine, the app is uninstalled, then the 1.0.1 version is installed, all good. But if the app was installed for all users (to C:/Program Files/…) the UAC dialog launches, asking for permission (as expected), the app is uninstalled (as expected), but then it is not installed again (totally unexpected). No errors, no warning, no nothing.

I will be happy to provide any other info if needed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:17

github_iconTop GitHub Comments

2reactions
rasgo-cccommented, Oct 12, 2020

Same issue here. Anyone willing to work on this? Any useful pointers?

PS: I’m using "electron-builder": "^22.8.0" and "electron-updater": "^4.3.4"

2reactions
DominikLevitskycommented, Nov 27, 2019

Probably worth mentioning, the app-updater folder (in C:/Users/User/AppData/Local/app-updater/pending/update-info.json) has the property “isAdminRightsRequired”: false, shouldn’t it be set to true, actually, if the app is installed in the Program Files for all users?

Read more comments on GitHub >

github_iconTop Results From Across the Web

User unable to update a program in program files after ...
I have a program installed in the Program Files (x86) folder that is prompting me there is an update available and when I...
Read more >
Unable to Install Apps or Software on Windows? Here's ...
To do this, head to Settings > Apps > Apps & features. At the top, you'll see a Choose where to get apps...
Read more >
Deploy Slack via Microsoft Installer
The MSI for single installation deployment installs Slack for Windows machine-wide, either to Program Files or a location of your choice. It is...
Read more >
Deploy Google Drive for desktop
Install Drive for desktop on each user's computer using one of these options: ... Download the .exe file and deploy it in silent...
Read more >
4. Using Python on Windows — Python 3.11.1 documentation
These installers are primarily intended to add a per-user installation of Python, ... Python will be installed into the Program Files directory.
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