Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Newbie uninstaller question - only delete the files I installed? (http://forums.winamp.com/showthread.php?t=303367)

dnigrin 22nd February 2009 01:47

Newbie uninstaller question - only delete the files I installed?
 
NSIS newbie here. I've successfully created a modern UI installer that installs my application after checking for a specific Java JRE version or greater.

My question is re: my uninstaller. Currently, I'm installing files by simply doing:

File /r "mysoftware\"

...where all the stuff I want to install is in the directory "mysoftware". There are *many* files/folders within that directory. I chose this approach instead of having to enumerate every file/folder I wanted to install.

So now my uninstaller - I've currently just doing:

RMDir /r "$INSTDIR"

Although this works, I'd prefer not to delete *everything* in the install directory, since my users might create and save some specific application data that they might store in that directory. So how do I *only* delete the files that my installer installed, and not any the user might have created? Do I have to specifically identify each and every file/folder that I installed, so that I only uninstall those? That will be tedious, if so.

Thanks in advance...

Comperio 22nd February 2009 01:53

See if this helps:
http://nsis.sourceforge.net/Advanced...og_NSIS_Header

dnigrin 22nd February 2009 01:53

My bad, just found this:

h**p://nsis.sourceforge.net/Advanced_Uninstall_Log_NSIS_Header

Sorry for the noise.

dnigrin 22nd February 2009 01:55

Quote:

Originally posted by Comperio
See if this helps:
http://nsis.sourceforge.net/Advanced...og_NSIS_Header

Thanks, we crossed in cyberspace. Yes, it's exactly what I need...


All times are GMT. The time now is 04:24.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.