Newbie uninstaller question - only delete the files I installed?
NSIS newbie here. I've successfully created a modern UI installer that installs my application after checking for a specific Java JRE version or greater.
My question is re: my uninstaller. Currently, I'm installing files by simply doing:
File /r "mysoftware\"
...where all the stuff I want to install is in the directory "mysoftware". There are *many* files/folders within that directory. I chose this approach instead of having to enumerate every file/folder I wanted to install.
So now my uninstaller - I've currently just doing:
RMDir /r "$INSTDIR"
Although this works, I'd prefer not to delete *everything* in the install directory, since my users might create and save some specific application data that they might store in that directory. So how do I *only* delete the files that my installer installed, and not any the user might have created? Do I have to specifically identify each and every file/folder that I installed, so that I only uninstall those? That will be tedious, if so.
Thanks in advance...