Skip to main content

Variable element

Describes a burn engine variable to define.

Parents

Bundle, Fragment

Attributes

Hidden (YesNoTypeUnion) : Whether the value of the variable should be hidden.

Name (String, required) : The name for the variable.

Overridable (wxs:YesNoTypeUnion, from extension namespace http://wixtoolset.org/schemas/v4/wxs/bal) : 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 (YesNoTypeUnion) : Whether the variable should be persisted.

Type (enumeration) : 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.

Edit the schema for this page