Installation 我怎样才能改变;标准;通过Inno安装程序安装类型?

Installation 我怎样才能改变;标准;通过Inno安装程序安装类型?,installation,inno-setup,Installation,Inno Setup,我的Inno设置脚本中有三种类型。 看起来是这样的: 名称:“紧凑型”;说明:“紧凑型安装” 名称:“完整”;说明:“完全安装” 名称:“海关”;说明:“自定义安装”;旗帜:iscustom 如果我现在构建安装程序,“标准”类型已满,但我希望第一选择是“紧凑”。 我在Inno设置的文档中没有找到任何东西,但可能我的关键字错了 我怎么能意识到这一点 谢谢你的帮助 cheers基于一些有限的测试,[Types]部分的顺序将确定默认情况下选择的类型。鉴于这一名单: [Types] Name: "ful

我的Inno设置脚本中有三种类型。 看起来是这样的:

名称:“紧凑型”;说明:“紧凑型安装” 名称:“完整”;说明:“完全安装” 名称:“海关”;说明:“自定义安装”;旗帜:iscustom

如果我现在构建安装程序,“标准”类型已满,但我希望第一选择是“紧凑”。 我在Inno设置的文档中没有找到任何东西,但可能我的关键字错了

我怎么能意识到这一点

谢谢你的帮助
cheers

基于一些有限的测试,
[Types]
部分的顺序将确定默认情况下选择的类型。鉴于这一名单:

[Types]
Name: "full"; Description: "Full installation"
Name: "compact"; Description: "Compact installation"
Name: "custom"; Description: "Custom installation"; Flags: iscustom
“完全安装”类型将位于列表的第一位。如果您想先进行“紧凑安装”,应将其更改为:

[Types]
Name: "compact"; Description: "Compact installation"
Name: "full"; Description: "Full installation"
Name: "custom"; Description: "Custom installation"; Flags: iscustom

因此,您想要成为默认值的是列表中的第一个

基于一些有限的测试,
[Types]
部分的顺序将确定默认情况下选择的类型。鉴于这一名单:

[Types]
Name: "full"; Description: "Full installation"
Name: "compact"; Description: "Compact installation"
Name: "custom"; Description: "Custom installation"; Flags: iscustom
“完全安装”类型将位于列表的第一位。如果您想先进行“紧凑安装”,应将其更改为:

[Types]
Name: "compact"; Description: "Compact installation"
Name: "full"; Description: "Full installation"
Name: "custom"; Description: "Custom installation"; Flags: iscustom
因此,您想要成为默认值的是列表中的第一个

好的, 这就是我的解决方案:

在示例项目中,类型的顺序选择默认值。 感谢mirtheil给出的快速而正确的答案

但这在我的自定义项目中不起作用。所以现在我改变了物品的描述。 我的代码如下所示:

[Types]
Name: "compact"; Description: "Compact installation"
Name: "full"; Description: "Full installation"
Name: "custom"; Description: "Custom installation"; Flags: iscustom
我的默认项是每次“满”。所以我把描述改成:

[Types]
Name: "compact"; Description: "Full installation"
Name: "full"; Description: "Compact installation"
Name: "custom"; Description: "Custom installation"; Flags: iscustom
并更改了我的组件中的类型标志,使“full”表示“compact”,而“compact”表示“full”

有点困惑,不是很好,但我没有找到其他解决方案。

好的, 这就是我的解决方案:

在示例项目中,类型的顺序选择默认值。 感谢mirtheil给出的快速而正确的答案

但这在我的自定义项目中不起作用。所以现在我改变了物品的描述。 我的代码如下所示:

[Types]
Name: "compact"; Description: "Compact installation"
Name: "full"; Description: "Full installation"
Name: "custom"; Description: "Custom installation"; Flags: iscustom
我的默认项是每次“满”。所以我把描述改成:

[Types]
Name: "compact"; Description: "Full installation"
Name: "full"; Description: "Compact installation"
Name: "custom"; Description: "Custom installation"; Flags: iscustom
并更改了我的组件中的类型标志,使“full”表示“compact”,而“compact”表示“full”


有点困惑,不是很好,但我没有找到其他解决方案。

谢谢你的快速回答。这也是我的第一个想法,但在版本5.5.9(a)中,这对我来说并不适用。我做了一些测试,它在“组件”示例项目中对我有效,但在我的个人安装程序中无效。奇怪:谢谢你的快速回答。这也是我的第一个想法,但在版本5.5.9(a)中,这对我来说并不适用。我做了一些测试,它在“组件”示例项目中对我有效,但在我的个人安装程序中无效。奇怪:S