Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st November 2007, 16:04   #1
Northern-Dean
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.
Northern-Dean is offline   Reply With Quote
Old 21st November 2007, 16:28   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 21st November 2007, 16:45   #3
Northern-Dean
Junior Member
 
Join Date: Nov 2007
Posts: 2
I knew there was something easy to make it work. Thank you so much.
Northern-Dean is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump