Skip to content
⌘ NSIS Forum Archive

Install a file to multiple folders

2 posts

Babado#

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:
C:/test

Inside this directory, there are multiple folders for example:
test1
test2
test3

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.
Anders#
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.