I\'m checking the windows version in an installer (made with NSIS) by checking the following registry key:
HKLM \"SOFTWARE\\Microsoft\\Windows NT\\CurrentVer
Try
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId
Which gives me 10 and 1709.