Reliable way to get Windows Version from registry

前端 未结 4 1486
花落未央
花落未央 2020-12-03 15:19

I\'m checking the windows version in an installer (made with NSIS) by checking the following registry key:

HKLM \"SOFTWARE\\Microsoft\\Windows NT\\CurrentVer         


        
4条回答
  •  天命终不由人
    2020-12-03 15:30

    Try

    HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName
    HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId
    

    Which gives me 10 and 1709.

提交回复
热议问题