SetProperty Element

Windows Installer XML (WiX) v3.0

SetProperty Element

Description
Sets a Property to a particular value. This is accomplished by creating a Type 51 custom action that is appropriately scheduled in the InstallUISequence and InstallExecuteSequence.
Windows Installer references
CustomAction Table
Parents
Fragment, Module, Product
Inner Text (xs:string)
The condition that determines whether the Property is set. If the condition evaluates to false, the Set is skipped.
Children
None
Attributes
Name Type Description Required
After String The name of the standard or custom action after which this action should be performed. Mutually exclusive with the Before attribute. A Before or After attribute is required when setting a Property.  
Before String The name of the standard or custom action before which this action should be performed. Mutually exclusive with the After attribute. A Before or After attribute is required when setting a Property.  
Id String This attribute specifies the Property to set to the Value.  
Sequence Enumeration Controls which sequences the Property assignment is sequenced in. The default is both. This attribute's value must be one of the following:
both
Schedules the assignment in the InstallUISequence and the InstallExecuteSequence.
execute
Schedules the assignment only in the the InstallExecuteSequence.
ui
Schedules the assignment only in the the InstallUISequence.
 
Value String This attribute specifies a string value to assign to the Property. The value can be a literal value or derived from a Property element using the Formatted syntax.  
Any attribute namespace='##other' processContents='lax'
See Also
Wix Schema, Custom, CustomActionRef, InstallUISequence, InstallExecuteSequence