InstallAware for Windows Installer Header Image Windows Installer without Rocket Science
InstallAware for Windows Installer
 

If

This command is used to direct program flow conditionally after performing an evaluation. It is used in conjunction with the Else If, Else, and End commands.

Variable

Type the name of the variable, according to the value of which the conditional evaluation will be performed.

Comparison

Choose a comparison type from the drop down menu. If both variables contain integer values, a numeric comparison will be performed. If at least one variable contains a non-integer value, a string comparison will be performed.

If you choose the Is Defined comparison, the command does not require the Compare With field, and only tests if the variable name specified above has been previously defined using a Set Variable command. This may be useful in cases where persistent variables are used, as it may be hard to determine which variables used in the setup script have been already initialized and which have not been initialized.

Reverse Comparison

Check this checkbox if you wish to execute an if not evaluation.

Compare With

Type the name of the second variable for comparison. You may also use a string literal in this field instead of a variable.