Condition Element

Windows Installer XML

Condition Element

Description
Conditions for components, controls, features, and products. The condition is specified in the inner text of the element.
Windows Installer references
Component Table, ControlCondition Table, Condition Table, LaunchCondition Table
Parents
Component, Control, Feature, Fragment, PermissionEx, Product
Inner Text (xs:string)
Under a Component element, the condition becomes the condition of the component. Under a Control element, the condition becomes a ControlCondition entry. Under a Feature element, the condition becomes a Condition entry. Under a Fragment or Product element, the condition becomes a LaunchCondition entry.
Children
None
Attributes
Name Type Description Required
Action Enumeration Used only under Control elements and is required. Allows specific actions to be applied to a control based on the result of this condition. This attribute's value must be one of the following:
default
Set the Control as the default. Only used under Control elements.
enable
Enable the Control. Only used under Control elements.
disable
Disable the Control. Only used under Control elements.
hide
Hide the Control. Only used under Control elements.
show
Display the Control. Only used under Control elements.
 
Level Integer Used only under Feature elements and is required. Allows modifying the level of a Feature based on the result of this condition.  
Message String Used only under Fragment or Product elements and is required. Set the value to the text to display when the condition fails and the installation must be terminated.  
How Tos and Examples
See Also
Wix Schema