I worked with passing command line parameters through Command prompt. (/d<name>=<value>)
. It's work.
Later I found "parameters"
option in "Run"
menu of "Inno Setup 5". I tried but failed to pass.
My Attempts
"/dWish=Hello"
/dWish=Hello
"Wish=Hello"
Wish="Hello"
Wish="Hello"
Wish=Hello
And access like {#Wish}
. But compilation filed with error undeclared identifier "Wish"
This is for option
Settings configured via Run
-> Parameters
are used to pass instructions to the installer being executed after compilation, not the build compiler (ISCC
). Options that may be set are available in the InnoSetup help under Setup Command Line Parameters.
To pass parameters to the compiler itself, run the compiler from the command-line, and use the /D
switch. So to set variable VAR
to value val
, use:
iscc "/dVAR=val" "MyInstallerScript.iss"
The ISCC.exe
program is located in:
%programfiles%\Inno Setup 5\ISCC.exe
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With