且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Inno Setup 5.5.5或更早版本中检查安装程序是否在Windows 10上运行?

更新时间:2023-12-04 15:55:22

根据

According to this blog post, VerifyVersionInfo is now subject to the same manifest-based version shenanigans that previously plagued GetVersionEx (and the latter is now deprecated).

唯一的正确"答案是等待包含新清单清单值的Inno新版本.可能更节省时间的答案是使用资源黑客程序将此值添加到当前版本的Setup.e32SetupLdr.e32中,直到发布新版本为止.

The only "right" answer is to wait for a new version of Inno that includes the new manifest value. Possibly a more time-efficient answer is to use a resource hacker program to add this value to Setup.e32 and SetupLdr.e32 in your current version, until such time as the new version is released.

有一些黑客解决方案-我看到的一个例子是cmd /c ver然后解析输出-但我不会更详细地说明这一点,这不是一个好主意.坚持以上.

There are some hackier solutions -- one example that I've seen was to cmd /c ver and then parse the output -- but I'm not going to dignify that with more detail, it's not a good idea. Stick to the above.