问题描述
我只需要1个具有3个组件的自定义安装类型:
如果我未明确指定类型,则默认情况下我不会设法检查组件。
我尝试了2种类型,但是它没有意义,因为它只是一个自定义安装。 知道如何通过单一类型获得预期的行为吗?
[Types]
Name: "standard"; Description: "Standard installation";
Name: "custom"; Description: "Custom installation"; Flags: iscustom
[Components]
Name: "first"; Description: "First Component"; Types: standard custom; Flags: fixed
Name: "second"; Description: "Second Component"; Types: standard custom;
Name: "third"; Description: "Third Component"; Types: custom;
解决方法
这应该做:
[Types]
Name: "custom"; Description: "Dummy custom installation"; Flags: iscustom
[Components]
Name: "first"; Description: "First Fixed Component"; Types: custom; Flags: fixed
Name: "second"; Description: "Second Checked Component"; Types: custom
Name: "third"; Description: "Third Unchecked Component"