|
![]() |
#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: 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. |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
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 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|