| Reference information | |
|---|---|
| Applies to | Tarma Installer |
| Related topics | The corresponding Windows Installer variable is ARPINSTALLLOCATION. |
Tarma Installer sets this variable to the primary installation folder of any existing installation of the same product. If the product is not currently installed, this variable is empty.
The major uses for this variable are:
In this context, "same product" is defined as "product with the same UninstallKey value" (which in turn is typically defined as <ProductCode>). As long as you build your installers for a given product from the same Tarma ExpertInstall project file and change neither the Product GUID attribute on the Product Identification project page nor the value of the UninstallKey variable, the resulting installers will be for "the same product".
| Usage | |
|---|---|
| How to set | Do not change its value; it has been carefully configured for cross-platform compatibility. |
| How to use | You can refer to this variable as <InstallLocation> (Tarma native syntax, preferred) or [InstallLocation] (Windows Installer syntax). In conditional expressions you can omit the brackets and simply use InstallLocation as a test for previous product installation. |