Archive: Uninstall question: How to prevent removing changed files.


Uninstall question: How to prevent removing changed files.
I know there are several extensions to facilitate uninstalling installed files.
http://nsis.sourceforge.net/Uninstal...nstalled_files
http://nsis.sourceforge.net/Advanced...og_NSIS_Header

Nevertheless they don't seem to offer the functionality I'm looking for.
I want the uninstaller to detect whether an installed file was changed (e.g. by checking the filedate), and leave the file if the file differs from the one that was installed.

I'm a newbie, so excuse me if the question doesn't make sense.....

Erik


You'll have to write a custom solution. I.e. when installing, get the timestamps off the files, store them somewhere*, then when uninstalling, compare against that list.

* INI files or the registry are obvious choices as you could access the date by filename/path. A flat file can also work, but is slow to parse.. reading each line into an Array with the Array plugin, and then searching the Array could be an option.