Inno Setup:MinVersion 不适用于 Windows 10
Inno Setup: MinVersion not working for Windows 10
此处指定:
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
上使用 ver
和 systeminfo
命令:
Z:\Desktop>ver
Microsoft Windows [Versión 10.0.10240]
请注意,我正在 虚拟机 中对此进行测试。
作为 ,我会说您使用的是旧版本的 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
如 5.5.6 的 Inno Setup revision history 中所述:
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).
此处指定:
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
上使用 ver
和 systeminfo
命令:
Z:\Desktop>ver
Microsoft Windows [Versión 10.0.10240]
请注意,我正在 虚拟机 中对此进行测试。
作为
使用 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
如 5.5.6 的 Inno Setup revision history 中所述:
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).