FeatureGetCostEx

InstallShield 2014 » InstallScript Language Reference

Project: This information applies to the following project types:

InstallScript
InstallScript MSI

The FeatureGetCostEx function returns the cost of the specified feature (in bytes) using the nvCostHigh and nvCostLow parameters. If szFeature is "", the cost of the entire media is returned. This function replaces the FeatureGetCost and FeatureGetTotalCost functions.

Syntax

FeatureGetCostEx ( szMediaSource, szFeature, szTarget, nvCostHigh, nvCostLow );

Parameters

FeatureGetCostEx Parameters

Parameter

Description

szMediaSource

The media source, typically MEDIA.

szFeature

Specifies the feature to get the cost of. If this value is "", the function returns the cost of the entire media.

szTarget

Specifies the target directory for the feature specified by szFeature.

nvCostHigh

Returns the upper 31 bits of the cost of the feature. Each cost unit returned represents 2GB of cost. For example, a value of 4 for this variable represents a cost of 8GB.

nvCostLow

Returns the lower 31 bits of the cost of the feature. The maximum value for this variable is 1 or 2GB of cost. Any cost greater than this is returned in the nvCostHigh variable.

Return Values

FeatureGetCostEx Return Values

Return Value

Description

ISERR_SUCCESS

Indicates that the function was successful.

< ISERR_SUCCESS

Indicates that the function was not successful.

See Also