【发布时间】:2015-02-27 23:51:15
【问题描述】:
可以通过简单地列出Components: a b c 等将任务设置为依赖于所选组件的显示,并且可以通过指定Flags: unchecked 将其设置为默认不选中。但是,如果只选择了一个特定组件而对所有其他组件保持未选中状态,似乎没有办法使用代码运行条件检查来检查任务。
Name: "SystemInfo"; Description: "Audit System Information"; GroupDescription: "Additional Setup Options"; Flags: unchecked; Components: Client Standalone Server
在这里,如果选择了 Client、Standalone 或 Server 组件,我希望 SystemInfo 任务显示为可选选项,但如果选择了 Server 组件,我希望默认选中而不是取消选中此选项。基本上,有没有办法在代码中执行Check: IsComponentServerSelected 并删除Flag: unchecked(如果为真)?也许我忽略了另一种方法?
【问题讨论】:
标签: inno-setup