Old 20th January 2020, 17:27   #1
Junior Member
Join Date: Jan 2020
Posts: 1
Install a file to multiple folders

Hi, I'm trying to install a file inside all folders that are inside a directory, for example:

I have the file called test.txt, which I want to install.
The directory where the folders are at is:

Inside this directory, there are multiple folders for example:

I need to install the file "test.txt" inside all those directories (test1,test2,test3), but it's not possible to know exacly the names of the folders, because they aren't always the same.

Is this possible to achieve with NSIS?

Thank you.
Babado is offline   Reply With Quote
Old 20th January 2020, 19:00   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,370
Use the Find* functions to search and SetOutPath to set the destination for the extracted file. You can call SetOutPath+File multiple times, in a loop if desired.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
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