首页 > 代码库 > 如何设置Installshield中 feature的选中状态

如何设置Installshield中 feature的选中状态

原文:如何设置Installshield中 feature的选中状态

上一篇: 使用strtuts2的iterator标签循环输出二维数组

之前一直有筒子问如何设置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:
TRUE—Select the specified feature.
FALSE—Do not select the specified feature.
所以,Help还是要多看看的。

下一篇: 关于在设置启动文件夹或者设置用户选项时不能得到当前用户的解决方法