Skip to content

Variable element

Describes a burn engine variable to define.

Attributes

Hidden

yesno

Whether the value of the variable should be hidden.

Name

string required

The name for the variable.

Overridable, from extension namespace http://wixtoolset.org/schemas/v4/wxs/bal

wxs:YesNoTypeUnion

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’.”

Persisted

yesno

Whether the variable should be persisted.

Type

VariableType

Type of the variable, inferred from the value if not specified. This attribute’s value must be one of the following:

  • string: A literal string.
  • formatted: A string that may contain Variables.
  • numeric
  • version

Value

string

Starting value for the variable.

Parents