![]() |
#1 |
Junior Member
Join Date: Sep 2018
Posts: 2
|
Pass a variable into File function in for loop cycle
My problem is this: I cannot pass variable inside a for loop, it seems that it does not recognize the variable. It takes the string with the variable, but not the variable value. This is my code
code: When I'm going to compile the nsis file, it returns this error: code: I can't understand why... if I try to change the code File "${PATH_OK}" with a messagebox the path results ok. Where am I doing wrong? Many thanks to all! |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
You cannot mix and match compile-time and run-time instructions like that.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Sep 2018
Posts: 2
|
|
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
The File instruction only knows the basic DOS wildcards, if you need something more advanced then you need to build a file list by executing something with !system and a batch file or something like that.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Tags |
file, for-loop, nsis |
Thread Tools | Search this Thread |
Display Modes | |
|
|