Archive: Uninstaller removes all files from $INSTDIR


Uninstaller removes all files from $INSTDIR
Most of the uninstaller problems seems to be related that uninstaller don't remove install directory, but in my case I just want to remove the installed files from install directory, not the ones which were there before the installer was run.

Here is the uninstall section of my script.

Delete "$INSTDIR\Uninstall.exe"
DeleteRegKey HKLM "SOFTWARE\MyApp"
RMDir /r "$SMPROGRAMS\MyApp"
RMDir /r "$INSTDIR\Data"

Problem is that i just want to remove $INSTDIR\Data directory, but uninstaller removes whole $INSTDIR directory.

Data directory contains hundreds of files and subdirectories, so I am not willing to list them all in uninstall section.

Hope that someone has faced similar problem and found a solution for it.


http://nsis.sourceforge.net/archive/...php?pageid=556


Generate list of files and directories for uninstaller


Thanks Yathosho, but this script is not suitable for this case.

There are only few files in Data directory which come during installation. Some of them are logfiles from MyApp and some other "new" files which MyApp produces when used.

Sorry for not mention this in original post.