Archive: NOT deleting overwritten files?


NOT deleting overwritten files?
I wanna create an installer for a modification to a game. What I don't want done is for me to first successfully install the mod, then when I uninstall it, remove some of the files that were overwritten initially. What's the most simple way to approach this for an NSIS newbie?


You don't want to remove files that were included with the installation and they are overwritten initially, right??
You may check file size, file last modified flag, or simply do not include such files into the uninstall section.


Originally posted by Red Wine
You don't want to remove files that were included with the installation and they are overwritten initially, right??
I don't want to remove any files that were overwritten. Maybe there is a way compare 2 directory trees and find matching files, then remove them from the uninstallation segment of NSIS?

Hello newbie2015,
I'm now just do installer with update too. Using uninstall based on http://nsis.sourceforge.net/Uninstal...nstalled_files

This function saves list of installed files in a log file excluding owerwritten files. On uninstall then it removes only these listed. I'm looking fo a way to exted it so it support file /r or locate command (see E.1.2 in NSIS manual).


For some reason, where you try to link me to that custom uninstaller, it says "URL submitted by user." and I can't go there.


URL: http://nsis.sourceforge.net/Uninstal...nstalled_files