The Conditions tab is used to conditionally include/exclude a file from the setup at build time or run time.
Build Configurations
The build configurations that will include the current file. You can check or uncheck the boxes in the build configurations tree. This feature can be used to prevent a file from being built into the setup.
Operating Systems
The operating systems that the file will be installed under. Some operating systems also allow you to select specific service release options. The main operating system categories are listed below:
•
Any OS (Selecting this option includes all OS's listed below)
•
Windows XP (SP2 or greater)
•
Windows Server 2003
•
Windows Vista
•
Windows Server 2008
•
Windows 7
•
Windows Server 2008 R2
•
Windows 8
•
Windows Server 2012
•
Windows 8.1
•
Windows Server 2012 R2
•
Windows 10
•
Windows Server 2016
•
All Future OSs
Script Condition
A custom condition written in Lua script for the file. The script you enter must evaluate to a boolean value of true or false. At runtime this result will determine whether or not the file will be installed.
Some examples of valid conditions are:
my_variable > 10
This means if the numeric value of the variable "my_variable" is greater than 10, install the file. If the value is less than 10, do not install the file.
my_variable == "Custom"
This means if the string value of the variable "my_variable" equals the string "Custom", install the file. If the strings are not equal, do not install the file. For string comparisons, you must ensure that the contents of your variable, or constant is also enclosed in quotes. ie. "My Value" == "My Value" after variable expansion.