-
-
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
Add option to specify what files to uninstall #1298
Comments
I submitted a basic PR that will be a smart "temporary" solution assuming the programmer knows what is being bundled in the installation. In theory all original installed files should be accounted for somewhere in the uninstaller. The current solution gives more power to the programmer to make the decision how they want to uninstall the program. |
It is why we don't allow to choose installation directory by default. This feature was rejected to be implemented because by default user cannot choose installation directory.
Proper solution will be to automatically detect such folders and create subdir for app. Could you please file PR? Because in any case user expects that folder will be created and not bunch of files in Documents:) |
Sure I can attempt it. Will try to submit something in a couple of hours or so. |
@develar So I found where to shove the code and the way I am thinking of doing this at the moment would check the I have found this function to help with this http://nsis.sourceforge.net/StrContains Is there some easier way to do it without having to include this extra function into the installer? If not where should this function be put? |
|
I created a possible fix although I have not yet had time to test it. I can test it later this weekend or I can submit a PR for you to test/merge it in @develar |
@mastergberry Looks good for me (but not tested). You can file a PR. |
So some of my users apparently think it's a good idea to install their application onto their Desktop or into their Documents folder.....Terrible idea. To be clear instead of installing it into
C:\Users\<username>\Desktop\<Application Name>
they are doingC:\Users\<username>\Desktop
/~https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/templates/nsis/uninstaller.nsh#L42
This line is nuking their other files if they install it into a dumb location.
Is there a way to remove just the files we installed by default and possibly extra files also such as logs or something? I would even just be content with uninstalling the original files we installed and then use the customUnInstall macro to clean up the other ones.
The text was updated successfully, but these errors were encountered: