Archive: Huge number of files - uninstall question


Huge number of files - uninstall question
Here is how I add files to my installer:

SetOutPath $INSTDIR\SYSTEM
File "${FilesDir}system\*.*"

I use *.* for two reasons. First, there are over 2000 files. Second, files can be added, deleted, etc..

Here is my problem. When I uninstall, I obviously want to remove these files. But unfortunately other files that I did not install could exist in the same directory. How can I handle this?


I suggest you create another installer that will generate the script for you. It will go over all of the files using FindFirst, FindNext and FindClose, write all of the File commands needed, then go over the files commands and write the Delete commands for the uninstaller.