|
|
#1 |
|
Junior Member
Join Date: Apr 2003
Posts: 11
|
Script for many files in many folders
Hi,
I am writing a nsis installtion script with mui. I have to include sevaral folders and files in each folder like this: SetOutPath "$Folder1" File "Folder1/File1" File "Folder1/File2" ... SetOutPath "$Folder2" File "Folder2/File1" File "Folder2/File2" ... The problem is, that there are so many nested folders and files each each folder that it would take forever to do it manually. Is there a faster way to include a complete folder with all its subfolders and files? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,777
|
File /r foo\*.*
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2003
Posts: 11
|
nice, thank you. and so easy.
Is there also a way to exclude files? Like All files *.* except all that start with 'a' or end with 'z'? Using RegExp or similar? |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,777
|
maybe you should look up info about the File command in the help file
IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|