How to check if installation is running on Windows 10 in Inno Setup 5.5.5 or older?

Currently GetWindowsVersionEx

returns version 6.3 on Windows 10 because the required Windows 10 compatibility manifest is not yet included in the current version of Inno Setup 5.5.5.

Is there a way to check if the current OS is Windows 10 until a new version of Inno Setup is released?

I already tried to check the version of the kernel32.dll file, but there is the same problem.

+3


source to share


1 answer


According to this blog post , VerifyVersionInfo

it is now exposed to the same manifest version of shenanigans that previously pursued GetVersionEx

(and the latter is now deprecated).

The only "correct" answer is to wait for the new version of Inno, which includes the new manifest value. Perhaps 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 a new version is released.



There are some hacky solutions - one example I saw was cmd /c ver

and then analyzed the output, but I'm not going to evaluate this in more detail, it's not a good idea. Stick to the above.

+2


source







All Articles