InstallShield 2018 » InstallScript Language Reference
Project • This information applies to the following project types:
| • | InstallScript | 
| • | InstallScript MSI | 
The FeatureGetData function retrieves information about a feature.
Syntax
FeatureGetData ( szFeatureSource, szFeature, nInfo, nvResult, svResult );
Parameters
| Parameter | Description | |||||||||||||||||||||||||||||||||||||||
| szFeatureSource | Specifies the media name of the script-created feature set or (in InstallScript projects) file media library that contains the feature for which information is retrieved. | |||||||||||||||||||||||||||||||||||||||
| szFeature | Specifies the name of the feature from which information is retrieved. To learn how to refer to top-level features and subfeatures, see Specifying Features and Subfeatures in Function Calls. | |||||||||||||||||||||||||||||||||||||||
| nInfo | Specifies the type of information to retrieve. Pass one of the following predefined constants in this parameter: 
 
 
 
 
 
 
 
 | |||||||||||||||||||||||||||||||||||||||
| nInfo (cont.) | 
 
 
 
 
 
 
 
 
 
 
 
 | |||||||||||||||||||||||||||||||||||||||
| nvResult | Returns a numeric value when nInfo produces a numeric result. When nInfo is FEATURE_FIELD_FILENEED, nvResult returns one of the following values: 
 
 
 When nInfo is FEATURE_FIELD_FLAGS, nvResult returns one of the following values: 
 
 
 
 
 
 
 
 
 
 | |||||||||||||||||||||||||||||||||||||||
| 
 | When nInfo is FEATURE_FIELD_PASSWORD, nvResult returns one of the following values: 
 
 When nInfo is FEATURE_FIELD_SELECTED, nvResult returns one of the following values: 
 
 When nInfo is FEATURE_FIELD_VISIBLE, nvResult returns one of the following values: 
 
 | |||||||||||||||||||||||||||||||||||||||
| svResult | Returns a string value when nInfo produces a string result. | 
Return Values
| Return Value | Description | 
| 0 | FeatureGetData was successful. | 
| < 0 | FeatureGetData failed. Call FeatureError for additional information. You can obtain the error message text associated with a large negative return value—for example, -2147024891 (0x80070005)—by calling FormatMessage. | 
See Also
| InstallShield 2018 Help LibrarySeptember 2018 | Copyright Information | Flexera |