On a Windows 10 PC, the following values are returned under the registry key HKLM\SOFTWARE\Microsoft\Windows NT

CURRENTBUILD: 19041
CURRENTMAJORVERSIONNUMBER: 10
CURRENTMINORVERSIONNUMBER: 0
CURRENTVERSION: 6.1
EDITIONID: Professional
RELEASEID: 2004



Yet, the value of %WINVER% is 1024 ($WIN_7$). This is causing our installer to report as not supported on the PC. From where is %WINVER% populated?

Thanks!