Skip to content
⌘ NSIS Forum Archive

How to uninstall only the previously installed files?

4 posts

Guest#

How to uninstall only the previously installed files?

Hi,

currently I'm creating an installer, which has to copy about 45 files and several sub directories. To make thinks easy, I'm using the NSIS command: File /r "c:\SourceFileFolder"

Creating the uninstaller is a little more difficult. I want to make sure, that the uninstaller won't delete files, which has been added afterwards to the folders. But all uninstaller examples I found, deletes either a complete folder or you must list each file separately (which is very unhandy in my case).

Is it some how possible to track the files copied by the installer and use this information to tell the uninstaller, which files to delete?

Frank
Afrow UK#
The only way is to dump the installation progress log to a file for later. The uninstaller can then parse this file.

-Stu
Instructor#
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.