- CompareNumerics Condition
Set when a certain comparison operation matches two numeric values.
- CompareVersions Condition
Set when a certain comparison operation matches two version string values.
- Empty Condition
True if a given value, file or directory is empty.
- Exists Condition
True if a given variable, file or directory exists.
- Contains Condition
True if certain substring or pattern can be found in a given string, variable content or file content
- Java Condition
Set based on a static java field or method
- Packselection Condition
Set when a certain pack is selected for installation.
- Ref Condition
Set when a another, referenced condition is set.
- Variable Condition
Set when a certain value matches the value of an IzPack variable.
- User Condition
Set when a certain user is using the installer.
There is a number of built-in conditions which are statically pre-set on launching the installation and which can be only referenced by their ID:
True if the current OS is (any) Windows.
True if the current OS is Windows XP.
True if the current OS is Windows Server 2003.
True if the current OS is Windows Vista.
True if the current OS is Windows 7.
True if the current OS is Windows 8.
True if the current OS is Mac OS X.
True if the current OS is (any) Linux.
True if the current OS is (any) Solaris.
True if the current OS is (any) Solaris x86.
True if the current OS is (any) Solaris Sparc.
Further, IzPack automatically sets reserved conditions depending on the packs selected by the user or an unattended installation (auto-install.xml) to be installed:
<packname> is the name attribute of the according pack. If the appropriate pack
<pack name="..."> defined in the installation description is selected, the condition validates true. Packs can be selected either in unattended installations by replaying a record of a previous installation (auto-install.xml) or interactively by the user by means of PacksPanel or its derivates, ImgPacksPanel or TreePacksPanel.
Conditions are defined in the installation definition as nested
<condition> elements of the
<condition> - Attributes
The following attributes must be set in a <condition> element definition:
Complex expression language
With IZPACK-577 and IZPACK-581 fixed and released, you can also Beginning with IzPack 5.0, there is also the possibility to use a more Complex complex expression language that which evaluates using the based on boolean precedence rules, which is also reflected in the following table. The higher an operator is, the higher is its precedence.