Skip to content
⌘ NSIS Forum Archive

Want to install / uninstall entire subdirectory under $INSTDIR

3 posts

Northern-Dean#

Want to install / uninstall entire subdirectory under $INSTDIR

As a convenience to our end user, I want to include an entire directory tree under $INSTDIR. It's a redistributable driver directory, and itself has 2 subdirectories and a bunch of DLLs etc.

Is there an easy way to install/uninstall an entire directory tree under $INSTDIR?

I've tried the "File" command repeatedly, specifying all the files individually, but they all end up in the main directory $INSTDIR. Of course, then they aren't where I expect, so don't get deleted. If I fixed the install issue, I'm sure the uninstall would work.
Afrow UK#
File /r and RMDir /r.
Also check this:
http://nsis.sourceforge.net/Validating_$INSTDIR_before_uninstall

If you want to include files individually, you have to have more than one SetOutPath instruction. As that link suggests, you should delete individual files on uninstall if you don't want to remove the users' files.

Stu