Old 9th September 2010, 10:18   #1
Junior Member
Join Date: Sep 2010
Posts: 1
Uninstall question: How to prevent removing changed files.

I know there are several extensions to facilitate uninstalling installed files.

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.....

ErikKlein is offline   Reply With Quote
Old 9th September 2010, 10:30   #2
Major Dude
Join Date: Jun 2001
Posts: 1,173
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.
Animaether is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

uninstall, uninstaller

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump