InstallShield 2019 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
Note that project-specific differences are provided where applicable.
The UNINSTALLKEY system variable contains the name of the registry key that is used to store your uninstallation information. The registry key is placed under SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall.
In an InstallScript installation, this key is placed under HKEY_USER_SELECTABLE_AUTO, which is controlled by the value of the ALLUSERS script variable. In an InstallScript MSI installation, this key is placed under HKEY_LOCAL_MACHINE if the installation is being run by an administrator; otherwise, it is placed under HKEY_CURRENT_USER.
In an InstallScript installation, the default value is INSTANCE_GUID. In an InstallScript MSI installation, the default value of UNINSTALLKEY is InstallShield_{ProductCode}.
To specify a different uninstallation key, assign a new value to UNINSTALLKEY in your script, as in the following example:
UNINSTALLKEY = "Sample App";
Note that to avoid conflicts with other installed applications, be sure to use a value that is unique to your application.
If the UNINSTALLKEY variable has been changed from the default value, the installation automatically creates an additional registry key for the product:
• | For InstallScript installations—REGDB_KEYPATH_ISUNINSTINFO ^ INSTANCE_GUID |
• | For InstallScript MSI installations—REGDB_KEYPATH_ISUNINSTINFO ^ [ProductGuid] |
This key contains a single string value with the name UninstallKey (REGDB_VALUENAME_UNINSTALLKEY); the value data contains the name of the product’s uninstall key as determined by the UNINSTALLKEY variable. This value can be used to allow other products to find and use the uninstall information for the product without the product’s custom uninstall key.
See Also
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |