Skip to content
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

Electron updater keeps new updates at user level #8073

Open
ismoil793 opened this issue Feb 23, 2024 · 3 comments
Open

Electron updater keeps new updates at user level #8073

ismoil793 opened this issue Feb 23, 2024 · 3 comments
Labels

Comments

@ismoil793
Copy link

ismoil793 commented Feb 23, 2024

  • Electron-Builder Version: 22.11.7
  • Node Version: 16.13.2
  • Electron Version: 14.1.0
  • Electron Type (current, beta, nightly):
  • Target: Windows msi

I install my electron app (msi build for Windows) with the following script:

msiexec /i "https://URL_TO_MY_APP_Messenger.msi" MSIINSTALLPERUSER=""

and it was installed under C:\Program Files\Messenger, which is expected since I want the app at system level

But As I can see I have another folder at C:\Users\Ismoil\AppData\Local\messenger-updater looks like that's where electron updater keeps updates with some files in that folder

  • installer.exe
  • pending/Messenger-some-version-number.exe
  • pending/update-info.json

and once the app is updated, I end up seeing 2 apps on my Desktop screen bcs the new updated install is located at user level under C:\Users\Ismoil\AppData\Local\Programs\Messenger

How can I resolve it?

Ideally, I want to control the update folder depending on the MSIINSTALLPERUSER="" (system level) MSIINSTALLPERUSER="1" (user level)

If it is not possible, I want to keep my app only under system level, but looks like electron-updater keeps updates only at user level
Gylil

Copy link
Contributor

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Jul 15, 2024
@ismoil793
Copy link
Author

Update: Electron doesn't support MSI system level upgrades. You can go with EXE version, however doing system level upgrades will require a password everytime the new version of the app is released.
What I have done is I disabled auto upgrade for the MSI apps installed at system level.

If clients would like to have the app at system level they have to take the responsibility of having latest versions.

Something similar is done by Slack desktop (based on electron)
https://slack.com/help/articles/212475728-Deploy-Slack-via-Microsoft-Installer

@github-actions github-actions bot removed the Stale label Jul 16, 2024
Copy link
Contributor

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant