InstallAware for Windows Installer
 

Using Variables

Most commands in InstallAware work with variables. You will be storing the state of your installation, choices the end user made, among other things, in your script variables. Keep the following things in mind when working with variables:

  • When specifying a variable for a command that expects a variable, just type in the variable name. For instance, if the variable is called MYVAR, simply type MYVAR.
  • With commands that do not specifically expect a variable, and work with string literals, you may still use variables, however you must dereference them. The syntax for dereferencing a variable in InstallAware is enclosing the variable name between dollar signs. For instance, if the variable is called MYVAR, dereference the variable using $MYVAR$. You may freely combine multiple dereferenced variables in your string literals.

Unless the command you are working with explicitly indicates otherwise, you can always use either a variable or a dereferenced variable.