Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 15th September 2008, 14:43   #1
Wanginator
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?
Wanginator is offline   Reply With Quote
Old 15th September 2008, 15:06   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,777
File /r foo\*.*

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 15th September 2008, 15:12   #3
Wanginator
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?
Wanginator is offline   Reply With Quote
Old 15th September 2008, 18:00   #4
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Reply
Go Back   Winamp 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