gpt4 book ai didi

inno-setup - ArchitecturesAllowed Inno Setup 指令是否涉及 CPU 架构或操作系统架构?

转载 作者:行者123 更新时间:2023-12-05 07:30:34 24 4
gpt4 key购买 nike

我的 64 位应用程序需要安装在 64 位 Windows 操作系统上。所以我在 [Setup] 部分添加了这两行:

[Setup]
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64

但是,我很困惑,因为 Inno Setup 文档说:

ArchitecturesInstallIn64BitMode: Specifies the 64-bit processor architecture(s)...

ArchitecturesAllowed: Specifies which processor architecture(s) Setup is allowed to run on

从文档来看,这两个设置似乎与处理器类型有关。但我有一台配备 64 位处理器但装有 Windows 10 32 位操作系统的可移植计算机。

那么我如何才能在 Inno Setup 中设置一个只关注 64 位操作系统作为先决条件而不关注处理器硬件的设置呢?

最佳答案

像这样构建安装程序并在 32 位 Windows 上尝试。它会提示它。

MS 开始了这种糟糕的文档趋势(即,使用“处理器架构”来表示“操作系统选择的处理器架构”而不是“CPU 架构”),而 Inno 紧随其后。 😐

手册在这里:http://www.jrsoftware.org/ishelp/index.php?topic=setup_architecturesallowed

If you install any 32-bit device drivers, you should set this directive to x86

只有当“处理器架构”真的意味着“操作系统内核架构”时,这条指令才有意义。

通常,声明式代码优于命令式代码。

关于inno-setup - ArchitecturesAllowed Inno Setup 指令是否涉及 CPU 架构或操作系统架构?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52187494/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com