-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
NSIS all users installation auto-update #2363
Comments
Ok, figured out myself.
|
Better to prepare PR. Anyway, thanks for solution. |
I don't know if it will be the correct code to fix in the PR, so i'll try to ask here In the
If we delete code with arrows, it will work as expected, but I'm not sure if it's correct to delete this. |
Cannot answer right now, UAC is quite complicated, need to deep reinvestigate. Could you please provide your full nsis config? |
config:
include.nsh:
|
Yeah.... problem is that |
I think that this problem is caused by the fact that silent installer is not aware of what permission it has when it tries to install update. |
@develar was this resolved then? I've had to turn off silent updates in my application as it wouldn't update without the UAC prompt and was waiting for a solution on here? |
@chrisbruford Please try latest versions. Should be fixed (and I have manually checked per-machine installation). |
@develar I'm Still seeing this with electron-builder 20.39.0. I used @Egorikhin's customInit and it works correctly. My setttings
|
@develar I've got this problem too. I think there are 2 paths here: with allowToChangeInstallationDirectory set. |
A little more description:
The problem exists with the per-user installation.
|
We ran into the same issue, however our solution was to force administrative privileges with |
UPDATE I had an issue that wasn't solved by any of the above. In the end, it turned out that having ORIGINAL Have tried every combination of config options, the custom Each time, it fails to run due to permissions, so runs in elevate instead, running Have tried with:
Same result, every time. |
@develar I am still seeing this issue with electron-builder 22.14.7 and electron-updater 4.6.2. My NSIS config is pretty simple:
When we set I have verified that my |
@develar nevermind, user error... We were doing something to interrupt the |
Running the app as (an) administrator seems like an extreme solution to get auto-update to work. |
electron-builder version:
19.47.1
electron-updater version
2.16.3
Target:
win
I'm facing the issue with updating application installed to the Program Files folder.
I have
oneClick: false
in config and i'm installing updates with:So when I'm trying to update application running under not admin account, it show UAC notificaton to enable old-uninstaller.exe execution. After I click on Yes it successfully deletes everything from application folder in Program Files but not installs new one. Altough, when I'm trying to update it under admin account it will be updated successfully.
Maybe it's relevant to this issue.
Could you please take a look on it or maybe suggest where should i look?
The text was updated successfully, but these errors were encountered: