I\'m checking the windows version in an installer (made with NSIS) by checking the following registry key:
HKLM \"SOFTWARE\\Microsoft\\Windows NT\\CurrentVer
Instead of reading the value CurrentVersion, read the new values CurrentMajorVersionNumber (which is 10) and CurrentMinorVersionNumber (which is 0) under Windows 10. Those 2 keys are new in Windows 10 to detect Windows Version from Registry.
CurrentVersion
CurrentMajorVersionNumber
CurrentMinorVersionNumber