FeatureAddUninstallCost
InstallShield 2024 » InstallScript Language Reference
Project:
The FeatureAddUninstallCost function specifies that the feature includes additional uninstallation operations that must be accounted for when updating the progress bar during uninstallation. You do not have to call this function for operations that are included in the uninstallation log file. This includes operations that are handled by the XCopyFile function that may or may not have had to call the FeatureAddCost function to update the progress bar during the installation. This function is only needed for operations that were carried out by functionality other than the InstallScript engine. This function can be called anytime before calling StatusUpdate and can be called multiple times.
Syntax
FeatureAddUninstallCost ( szMediaSource, szFeature, nOps, nOpType);
Parameters
Parameter |
Description |
|||||||||
szMediaSource |
The media source, typically MEDIA. |
|||||||||
szFeature |
Specifies the feature to add this cost to. Note that a specific feature in the media must be specified. Uninstallation cost is calculated by feature. Cost cannot be specified for the entire media. |
|||||||||
nOps |
The number of operations to be added. |
|||||||||
nOpType |
Indicates the type of operation. Pass one of the following predefined constants in this parameter:
Note:You can also pass a numeric value in this parameter to indicate an operation of a specific cost. You may need to experiment with different values to determine the appropriate value for a specified custom operation. Note that the total uninstall cost added is nOps multiplied by nOpType. |
Return Values
Return Value |
Description |
ISERR_SUCCESS |
Indicates that the function successfully added the cost. |
< ISERR_SUCCESS |
Indicates that the function was unable to add the cost. |
See Also