Inno Setup 自定义安装中预先检查或未检查的组件
Prechecked or unchecked components in Inno Setup custom install
我只需要 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"
我只需要 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"