-
-
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 sign uninstaller #526
NSIS sign uninstaller #526
Comments
Yes, it is known issue in the nsis todo list. Will be cool if you prepare PR.
Currently, you can build installer without windows, — we bundle posix makensis, but the problem in the rcedit — we still need use wine to set icon and version string for app exe (nsis will set it for installer exe without wine, I guess using some template setup).
It means, that on non-windows machine we still need to use wine "to run the installer on the development machine in a special mode"
If want you to get rid of |
In the old template there existed the following entries that provided all the needed info.
As you can see the executable for the uninstaller is configurable so yes you can avoid the WriteUninstaller and replace it with another program that just undoes what the installer does
The special mode noted refers to executing makensis twice. First with some flag set (something like makensis \DINNER ) to create the uninstaller and a second one that packs the actual installer (without the INNER flag set). In the mean time electron-builder can sign the uninstaller so that the created installer is good to go.
I don't know how common is to write custom uninstallers for an electron app but for a simple app the developer would not bother to write one. Thanks for answering so quickly. I 'll wait until we settle on what should be done before writing an code. |
Yes. But we should not add unnecessary complexity/restriction. Why do you want to get rid of And again — wine in any case is require to setup icon/version string for app exe (well, you pointed me that is possible using WriteRegStr — maybe it is a solution, but I think is is not real solution (I don't like it — metadata should be embedded into the exe)). So, I propose just follow http://nsis.sourceforge.net/Signing_an_Uninstaller |
Are you going to work on it or I can do it? |
Sorry but I got really busy the last few days, do it if you wish. I could have the PR ready it in a couple o days |
Well go ahead and do it. I don't want to keep you waiting. Sorry for not notifying earlier |
Before Squirrel came to electron-builder I was about to file a PR concerning not having to sign the uninstaller after doing a windows installation etc. I don't still have the code but the idea was to create the uninstaller as a normal program sign it and then pack it along with the installer.
This way the installer becomes somewhat bigger but then one can build the installer without using Windows. The idea was based on http://nsis.sourceforge.net/Signing_an_Uninstaller which as it is would speed up the build process on a Windows machine.
The text was updated successfully, but these errors were encountered: