-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 can't install the app for all users on some PC #4065
Comments
Same problem with @Zver64 . |
Same issue for me using 20.43.0 Upgraded to 20.44.4, no difference Downgraded to last known working version, 20.38.5 and works fine again, installed/upgraded no problem config:
app was built on Mac. Another one: #4057 |
I am experimenting with settings as well. I removed perMachine and now it works perfectly on one of test machines, but not on another one. I am able to install it for current user only. But not for all users. |
The installation aborts immediately after clicking the "Install" button on the choose install location dialog. I noticed when the installer detects an existing installation making the app install as an upgrade, the installation path was listed as At some point in the past i implemented testing and staging builds by changing the package.json "name" and "build.productName" properties. Initially i was only changing the "build.productName" and 'build.appId" properties which did not actually change the installation directory and add-remove-programs / registry entry until i found out about "build.extraMetadata" which also allowed the 'name" property to be changed. It looks like i had an existing installation with the intended productName but the name left unchanged, making the installer detect the productName and try to use an incorrect installation directory found in the registry. I tried installing as a fresh installation, deleting the app dir from Installing as a fresh installation solved the issue and i was also unable to recreate the issue by upgrading. I tested it by creating 3 builds using 20.38.5, 20.43.0 and 20.44.4 and them installing them in sequence. It seems that the issue was caused by the presence of a previous installation built using a different configuration of package.json name and build.productName settings. I think some work needs to be done to improve the error handling here as it does not fail nicely. I also could not find any installation logs, although it didn't spend too long looking, anyone know where to find them? |
Ok, seems like the above is not the complete story, there seems to be an issue with the installation directory depending if a one-click unattended installer or an attended installer is created. I recently added this section to my package.json build config:
Without the above section, an unattended one-click installer is created which on a clean installation installs the app into: When adding the above config which creates the attended installer, on a clean install the app is installed into: If the app is installed first using the one-click installer and then installed over the top using the attended installer, the attended installer detects an existing installation at I was not able to reproduce the issue by performing the above steps, so likely it was caused by the changes i had made over time. |
I have the same issue when using:
and custom "customRemoveFiles" macro which leaves the app folder and one of my subfolders. Here is the issue: #4056 |
Hey, some of my users are also reporting this issue. Is there any debug logs or something to try and resolve the issue?
My installation config is similar to the original one...so this means the installation is in There is still a directory located in Is there a complete solution here to fix this? Some of my users are claiming to do full uninstalls, reinstalls, etc but still not having any luck... |
So I had a user that reported this error...and I was able to fix it. It basically relates to: #4069 (at least for me). I deleted the old bad GUID Uninstaller from the registry and then the installation worked with no issues. Here is the code I used in nsis to basically do this:
|
Still having issues on this even with the above macro/attempts to fix it. Seems to also happen sometimes with the new GUID as well. |
Tagging @develar to try and take a look at this, as it's a pretty widespread problem since upgrading electron-updater and electron-builder for my users. Really wish there was more detailed output from nsis as to what failed. |
Also related to: #4092 Several problems/issues between uninstallation and installation. |
We have a similar issue: #4474 It seems if the "perMachine" is not set, the auto-updater picks the default as for current user, and then the old installation is deleted, but the new one is not installed. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Any updates regarding this? |
I can confirm the issue. Upgrading electron-builder The new installer might work on a second try, which will also result in a non-updated + broken installation entry in the Windows programs list. @Zver64 IMO this should be reopened |
Seems to still be a problem, please re-open! |
Still an issue. Please reopen |
1 similar comment
Still an issue. Please reopen |
I am no longer working on the project where I had this issue, but looking at the coments above it indeed seems to be a relevant issue. Although I don't know how to reopen it. |
A few of my users are also having this issue. Hoping this issue could still come back to surface |
Definitely still seems to be an issue. Occuring for my users with electron-builder |
Also in electron-builder |
I've found a solution. If you're on Windows, open |
@Zver64 please reopen it. |
Same problem here with electron-builder 22.7.0. |
Same experience for me and many of my users - registry entries are not removed when uninstalled on Windows using NSIS, have to manually go in and delete registry entries before you can proceed with a new install. Please re-open this issue @develar, there's a lot of evidence in this thread to support this remaining an active problem. |
I'm currently not able to dive deeper into the topic but I ran into the same troubles today. This is my setting:
But - I was actually able to fix the broken installation process simply by updating
The project was using electron ^7.1.3 and electron-builder ^21.2.0 beforehand. Maybe that's a help for someone :-) |
same problem here. I just want to install the program to the program file folder rather than the AppData folder |
maybe you need clear the old registry value.. i am using revo uninstaller for cleaning old registry and cache.. |
I have created an installer using electron-builder settings below:
I have installed the app on few machines and there were two PC where I couldn't install it. Here is what I get:

it says: Installation Aborted. Setup was not completed successfully.
I have no idea why this happens, and how to fix it. Does anybody know why it might happen?
This problem appears on two machines out of 7 I have tested so far. Both run windows 10.
The text was updated successfully, but these errors were encountered: