The local <varList> element is a child of the <installSteps>, <uninstallSteps>, <snapshot> and <control> elements and is used to declare a list of variables that may be used by the steps of the enclosing element. The values of the variables are defined at the point of declaration, and cannot be redefined.
The steps of the enclosing element may use locally-scoped variables declared in the local <varList> element, parameters declared in the <paramList> element, and component-scoped variables declared in the component <varList> element of the enclosing component. If a local <varList> variable has the same name as a component <varList> variable, the value of the local variable is used. In this case, the local variable is said to “hide” the component variable. Hiding is not permitted between local variables and parameters, as their names must be distinct.
Name |
How Many? |
Description |
---|---|---|
var |
1 or more |
A local variable declaration, including name and default value. |