Reputation: 39
Currently GetWindowsVersionEx
returns version 6.3 on Windows 10 because the necessary manifest for the Windows 10 compatibility is not yet included in the currently available Inno Setup 5.5.5.
Is there any way to check if the current OS is Windows 10 until the new version of Inno Setup will be released?
I've already tried to check for the file version of kernel32.dll, but there is the same problem.
Upvotes: 3
Views: 2487
Reputation: 13095
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).
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.
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.
Upvotes: 2