|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Nov 2007
Posts: 2
|
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. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2007
Posts: 2
|
I knew there was something easy to make it work. Thank you so much.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|