UNINST

InstallShield 2015 » InstallScript Language Reference

Project: The following project types support UNINST:

InstallScript
InstallScript MSI

The UNINST system variable is provided for compatibility with earlier versions of InstallShield software. It contains the command line that launches the copy of Setup.exe that was placed on the target system to perform uninstallation. The default value is:

<UNINSTALL_STRING> -uninst

If you use this command line, the installation runs the OnUninstall event when the installation is launched. For more details, review the /uninst command-line parameter information for Setup.exe.

This command line is placed in the appropriate registry value by the DeinstallStart function, which is provided for compatibility with previous versions of InstallShield software.

The value of this system variable is shared among object scripts and between object scripts and the main setup script.

You can append your own custom command line switches to UNINST for processing by your script’s uninstallation code. If you do so, and you change the value of the system variable DISK1TARGET, be sure to change DISK1TARGET before appending to UNINST; UNINST incorporates DISK1TARGET and is automatically changed when you change DISK1TARGET.

See Also