gpt4 book ai didi

windows - Inno 安装程序 : MinVersion not working for Windows 10

转载 作者:可可西里 更新时间:2023-11-01 09:52:42 25 4
gpt4 key购买 nike

如此处指定:
http://www.jrsoftware.org/ishelp/topic_winvernotes.htm

我正在使用这个:

MinVersion=10.0.10240

但是,当我尝试在 Windows 10 上运行我的设置时,它显示如下:

This program does not support the version of Windows your computer is running.

为什么?这是关于 Inno Setup 的错误吗?

我已经验证我已经安装了 10240 版本,在 cmd 上使用 versysteminfo 命令:

Z:\Desktop>ver

Microsoft Windows [Versión 10.0.10240]

请注意,我正在虚拟机中对此进行测试。

最佳答案

正如@TLama 评论的那样,我会说您使用的是旧版本的 Inno Setup(5.5.6 之前)。


使用 Inno Setup 5.5.6:

2015-08-07 14:44:33.588   Setup version: Inno Setup version 5.5.6 (u)
...
2015-08-07 14:44:33.588 Windows version: 10.0.10240 (NT platform: Yes)
...
2015-08-07 14:44:59.745 Installation process succeeded.

使用 Inno Setup 5.5.5 编译的相同安装程序:

2015-08-07 14:46:42.354   Setup version: Inno Setup version 5.5.5 (u)
...
2015-08-07 14:46:42.354 Windows version: 6.3.9600 (NT platform: Yes)
...
2015-08-07 14:46:42.354 Message box (OK):
This program does not support the version of Windows your computer is running.
2015-08-07 14:46:44.026 User chose OK.
2015-08-07 14:46:44.026 Got EAbort exception.
2015-08-07 14:46:44.026 Deinitializing Setup.
2015-08-07 14:46:44.026 Log closed.

两者都适用于像这样的普通安装程序:

[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
MinVersion=10.0.10240

差异是由这个变化引起的:
https://github.com/jrsoftware/issrc/commit/9402b5c9a463cfe7618341011cc5b65ffc968ccd

Inno Setup revision history 中所述对于 5.5.6:

Added the Windows 10 "compatibility" section to the various manifest resources used by Inno Setup. This enables any check for the operating system version to get the real version number (10.0) instead of getting the same version number as it did in Windows 8.1 (6.3).

关于windows - Inno 安装程序 : MinVersion not working for Windows 10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31875561/

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