You use simple substitution to define variables that you then reference later in the same component.
Simple substitution variables use the following syntax:
:[variable] |
where variable is one of the following:
Local variable name - You can use local variable names in steps within a plan and in steps within a component's install, uninstall, and control service blocks.
Parameter name - You can use parameter names in steps within a plan and in steps within a component's install, uninstall, and control service blocks.
Predefined component variable name - You can only use predefined component variables in input sources associated with a component, but not for plans.
Predefined component variables are always resolved relative to the actual component that is (or is being) installed, even if the variable reference occurs in a base component. From an accessibility standpoint, predefined component variables are treated as public variables.
The predefined component variable names are listed in Predefined Substitution Variables for Components and Configuration Files.
Dynamic component variable name - You can only use dynamic component variables in input sources associated with a component, but not for plans.
A dynamic component variable name is a variable name declared by the associated component of the target component. In this case, the value to be substituted for the variable reference is either the associated override variables settings value, or else the default value defined by the component The value of this variable will be expanded before it is substituted.