Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you pass in parameters to the Inno Setup command line compiler?

Tags:

inno-setup

It was suggested in the IS newsgroup to use /D= but using the iscc.exe that came with version 5.2.3 I get an "Unknown option:" error.

Then in the script, how do you use the value of the command line parameter?

like image 639
AlanKley Avatar asked Feb 04 '09 18:02

AlanKley


People also ask

How do I set up Inno?

Go to Menu, Project, then Compile to compile and create the setup file. This will create a complete installer. Run the Setup and your application will be installed correctly. Innosetup offers an awesome alternative to create great looking Installers for free.

Which of the given command line parameter is used to suppress logging?

To prevent this behavior, you can suppress the log file by specifying /LogFile= (with no filename argument) after Installutil.exe on the command line.

How do I compile an ISS file?

To compile an ISS file into an EXE file, open the ISS file in Inno Setup and then select Build → Compile from Inno Setup's menu bar.

What is Suppressmsgboxes?

/SUPPRESSMSGBOXESInstructs Setup to suppress message boxes. Only has an effect when combined with '/SILENT' or '/VERYSILENT'. The default response in situations where there's a choice is: Yes in a 'Keep newer file? ' situation.


2 Answers

You do, as MicSim says, need the preprocessor. It's included in the latest ISPack. Once it's installed, iscc supports /D.

You can then use the values defined like this (assuming you'd done /DVERSION_NAME=1.23):

AppVerName=MyApplication v{#VERSION_NAME}
like image 107
Jon Bright Avatar answered Oct 06 '22 02:10

Jon Bright


From the Inno Setup helpfile:

Inno Setup Preprocessor replaces the standard Inno Setup Command Line Compiler (ISCC.exe) by an extended version. This extended version provides extra parameters to control Inno Setup Preprocessor.

The "extra parameters" include the /d option.

like image 20
jdigital Avatar answered Oct 06 '22 03:10

jdigital