Skip to main content
Version: v3

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
NameTypeDescriptionRequired
ActionString By default the action is "Set" + Id attribute's value. This optional attribute can override the action name in the case where multiple SetProperty elements target the same Id (probably with mutually exclusive conditions).  
AfterStringThe 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. 
BeforeStringThe 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. 
IdString This attribute specifies the Property to set to the Value.  
SequenceSequenceType Controls which sequences the Property assignment is sequenced in. For 'execute', the assignment is scheduled in the InstallExecuteSequence. For 'ui', the assignment is scheduled in the InstallUISequence. For 'first', the assignment is scheduled in the InstallUISequence or the InstallExecuteSequence if the InstallUISequence is skipped at install time. For 'both', the assignment is scheduled in both the InstallUISequence and the InstallExecuteSequence. The default is 'both'.  
ValueString 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') Extensibility point in the WiX XML Schema. Schema extensions can register additional attributes at this point in the schema.
See Also
Wix Schema, Custom, CustomActionRef, InstallUISequence, InstallExecuteSequence