之前一直有筒子问如何设置Installshield中 feature的选中状态,因为在Install Design里是没有这个选项的。
今天打开Help搜索了一下,函数如下:
FeatureSelectItem ( szFeatureSource, szFeature, bSelect );
szFeatureSource
Specifies the media name of the script-created feature set or (in InstallScript projects) file media library containing the feature whose selection status is to be set.
szFeature
Specifies the feature whose selection status is to be set. For more information about specifying features and subfeatures in InstallScript, see Specifying Features and Subfeatures in Function Calls.
bSelect
Specifies whether or not the feature should be selected. Pass one of the following predefined constants in this parameter:
Specifies the media name of the script-created feature set or (in InstallScript projects) file media library containing the feature whose selection status is to be set.
szFeature
Specifies the feature whose selection status is to be set. For more information about specifying features and subfeatures in InstallScript, see Specifying Features and Subfeatures in Function Calls.
bSelect
Specifies whether or not the feature should be selected. Pass one of the following predefined constants in this parameter:
TRUE—Select the specified feature.
FALSE—Do not select the specified feature.
FALSE—Do not select the specified feature.
所以,Help还是要多看看的。