Archive: copy one specific dir which contains also a subdir


copy one specific dir which contains also a subdir
my problem is that i want to include files from source in a dir and inside is a subdir_1 with some needed files. there is also a second subdir those files aren't needed, if they will not selected in the installer.

the structure could look like this:

rootir
|
|-> dir_1
| |-> subdir_1
| |-> subdir_2
| |-> ...
|
|-> dir_2
| |-> subdir_3
| |-> subdir_4
...

when i use
File /r "E:\Appname\Engine\dir_1\*.*"
the installer include also subdir_2 no matter i set this before or not:
SetOutPath "$INSTDIR\Engine\dir_1\"

anyone a idea on how to do this?


Use the /x switch, e.g.

File /r /x "Docs" /x "Plugins" "${NSISDIR}\*"

BTW SetOutPath is run time instruction.

Originally posted by Red Wine
Use the /x switch, e.g.
File /r /x "Docs" /x "Plugins" "${NSISDIR}\*"

BTW SetOutPath is run time instruction.
thx
i will give this a try, tomorrow. now i have to sleep for a while...zzzZZZZzzzz

thank you very much! now it works :-)