选中/取消选中 Inno Setup 中的所有组件复选框

Check / uncheck all component checkboxes in Inno Setup

我有一长串组件,这些组件依次调用子安装文件来安装 selected 组件。 所有组件都带有复选框,用户可以 select 和 deselect。 我需要在顶部单击一个复选框,它将 Check/Uncheck 全部包含在组件列表中。

这可以做到吗?

感谢阅读

添加顶级主组件:

[Components]
Name: "all"; Description: "All"; Types: full compact custom;
Name: "all\comp1"; Description: "Component 1"; Types: full compact custom;
Name: "all\comp2"; Description: "Component 2"; Types: full compact custom;
Name: "all\comp3"; Description: "Component 3"; Types: full compact custom;