Skip to main content
Version: v3

Variable Element

Description
Describes a burn engine variable to define.
Windows Installer references
None
Parents
Bundle, Fragment
Inner Text
None
Children
None
Attributes
NameTypeDescriptionRequired
HiddenYesNoTypeWhether the value of the variable should be hidden. 
NameStringThe name for the variable.Yes
PersistedYesNoTypeWhether the variable should be persisted. 
TypeEnumerationType of the variable, inferred from the value if not specified. This attribute's value must be one of the following:
string
numeric
version
 
ValueStringStarting value for the variable. 
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.
OverridableYesNoType When set to "yes", lets the user override the variable's default value by specifying another value on the command line, in the form Variable=Value. Otherwise, WixStdBA won't overwrite the default value and will log "Ignoring attempt to set non-overridable variable: 'BAR'." (http://schemas.microsoft.com/wix/BalExtension) 
See Also
Wix Schema