安装 Shield - 如何禁用功能树中的特定功能?
我是安装shield的新手,我有一个安装脚本msi项目并有一些功能,我希望feature3在sdfeaturestree对话框中显示为灰色。
请帮助我解决这个问题,我很困难。 请告诉我禁用指定功能的复选框的功能?
I am new to install shield, I have an Install Script msi project and have some features, I want feature3 to be greyed out in sdfeaturestree dialog.
Kindly help me in to this I am very stucked.
kindly tell me the function which disable the check box of specified feature?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不认为有一个功能可以禁用某个功能。常见的做法是使用“所需功能”属性,其中隐藏的功能需要您想要灰显的功能。
I don't think there's a function to disable a feature. Common practice is to use the Required Features property, where a hidden feature requires the one you want to gray out.
您可以使用InstallScript:
这样您就可以隐藏该功能。如果您想取消选择该功能,可以使用
FEATURE_FIELD_SELECTED
而不是FEATURE_FIELD_VISIBLE
。您还可以通过转到安装程序的功能树,选择要灰显的功能,然后添加一些更改安装级别的条件来完成此操作;您可以在以下 URL 中找到安装级别的说明:
希望这有帮助!
You could use InstallScript:
This way you can hide the feature. If you want to de-select the feature you could use
FEATURE_FIELD_SELECTED
instead ofFEATURE_FIELD_VISIBLE
.You could also do this by going to the Feature tree of your installer, select the feature you want to be greyed out, and add some conditions that change the installlevel; you can find an explanation of the installlevel in the following URL:
Hope this helps!