Inno Setup:MinVersion不适用于Windows 10

Ele*_*ios 2 windows installer inno-setup windows-10

如此处所述:http:
//www.jrsoftware.org/ishelp/topic_winvernotes.htm

我正在使用这个:

MinVersion=10.0.10240
Run Code Online (Sandbox Code Playgroud)

但是,当我尝试在Windows 10上运行我的设置时,它说:

此程序不支持您的计算机运行的Windows版本.

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

我已验证我已经安装了10240身材,versysteminfo命令上cmd:

Z:\Desktop>ver

Microsoft Windows [Versión 10.0.10240]
Run Code Online (Sandbox Code Playgroud)

请注意,我正在虚拟机中测试它.

Mar*_*ryl 5

正如@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.
Run Code Online (Sandbox Code Playgroud)

使用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.
Run Code Online (Sandbox Code Playgroud)

两者都是一个简单的安装程序,如:

[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
MinVersion=10.0.10240
Run Code Online (Sandbox Code Playgroud)

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

如5.5.6 的Inno Setup修订历史记录中所述:

将Windows 10"兼容性"部分添加到Inno Setup使用的各种清单资源中.这使得对操作系统版本的任何检查都可以获得实际版本号(10.0),而不是获得与Windows 8.1(6.3)中相同的版本号.