I need to pass a parameter value from compiler to the [Files] section of my compiled script, such as one can do at setup runtime using the {param:...} constant in their script. My idea is compiling my script e.g. this way (which fails to execute):
compil32 "script.iss" -CmdPath "D:\Samples"
Having in my script something like this (it won't work as it's for setup runtime not compilation time):
#define DefPath "D:\Install"
[Files]
Source: {param:CmdPath|DefPath}\Install\App.exe; DestDir: {app};