![]()
|
InstallShield 12 » InstallScript Language Reference
The DeinstallStart function is supported only for compatibility with scripts created in previous versions of InstallShield. We recommend that you use the MaintenanceStart function instead.
DeinstallStart enables uninstallation functionality by creating the following values under the application uninstallation registry key:
| Value Name |
Value Data |
|---|---|
| UninstallString |
The value of the system variable UNINST. (Note that UNINST includes Setup.exe's -uninst option, which runs the setup as an uninstallation that prompts the user appropriately but does not execute any script code.) |
| DisplayName |
The value of the system variable IFX_PRODUCT_NAME. |
| LogFile |
<DISK1TARGET>\Setup.ilg |
| DisplayVersion |
The value of the system variable IFX_PRODUCT_VERSION. |
| MajorVersion |
The first byte of the data in the [Version] value. |
| MinorVersion |
The second byte of the data in the [Version] value. |
| Version |
The packed DWORD equivalent of the data in the [DisplayVersion] value. |
DeinstallStart should be executed only once in a setup script. However, if you are launching multiple scripts using DoInstall, then you can in effect call DeinstallStart more than once in a setup because each individual script can call DeinstallStart once.
DeinstallStart (szObsolete, svObsolete, szObsolete, lReserved);
| Return Value |
Description |
|---|---|
| 0 |
Indicates that the function successfully created the registry key values. |
| < 0 |
Indicates that the function was unable to create one or more of the registry key values. You can obtain the error message text associated with a large negative return valuefor example, -2147024891 (0x80070005)by calling FormatMessage. |
See Also
|
|
copyright contact |