Hi,
I'm trying to substitute a pair of environment variables to use in the paths to select the files for the installer.
I assume that using ExpandEnvStrings is the way forward and can declare my rnv vars without issue. I can't seem to find any examples of how to use the $x in the script section.
I'm basically trying to achieve turning
File /r c:\jonathan\folder-abcd\...
To
File /r $0\folder-$1\...
What is the correct syntax
Jonathan
ExpandEnvStrings usage
3 posts
File "$%myvar%\foo\bar" is expanded on your computer.
SetOutPath sets where File extracts:
ReadEnvStr $1 MyVar
SetOutPath "$1\baz"
File ...
SetOutPath sets where File extracts:
ReadEnvStr $1 MyVar
SetOutPath "$1\baz"
File ...
Thank you for the example, got it working exactly as I needed it to.