|
|
#1 |
|
Junior Member
Join Date: Oct 2014
Posts: 3
|
Source tree rename to destination tree
Hello,
how to take a tree from source and put it to an other location for destination ? An example: code: takes all files from <sourcedir>\Server and below and installs it to $INSTDIR\Server What i want to do is to place it to $INSTDIR\*.* (i.e. pruning the "Server" directory. The only way i found is to list each file of the tree seperately and treat it that way: code: Is there an easier way ? regards Last edited by humba; 17th October 2014 at 09:46. Reason: Fixing the option of the File command (/r instead of /s) |
|
|
|
|
|
#2 | |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
I haven't heard of the /s switch (it's not in the docs), but try this:
Quote:
"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2014
Posts: 3
|
If i read the doc correctly it does include sub-directories of "server\*". But as written in the original post i was not able to omit the "Server" part when installing.
So i get code: instead of (this is what i want) code: |
|
|
|
|
|
#4 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
Did you try my code? (my own test worked).
"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Oct 2014
Posts: 3
|
[Solved] Source tree rename to destination tree
Tested myself. you're right.
It seems that i have mis-read the doc. Thanks for your help |
|
|
|
|
|
#6 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
No problem
.
"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|