Archive: Want to install / uninstall entire subdirectory under $INSTDIR


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.


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


I knew there was something easy to make it work. Thank you so much.