CurrentVersion value in registry for each windows operating system

有些话、适合烂在心里 提交于 2019-11-29 09:43:17

问题


I am working on nsis installer. For this purpose I want to know CurrentVersion value for each operating system at

HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion"

For example: I have windows 7 professional installed on my machine and CurrentVersion value is 6.1.

Can any one list it down for all windows operating systems since Windows 98?


回答1:


These are the required versions of windows operating systems:

Operating system              Version number
----------------------------  --------------
Windows 10                      10.0
Windows Server 2019             10.0
Windows Server 2016             10.0
Windows 8.1                     6.3
Windows Server 2012 R2          6.3
Windows 8                       6.2
Windows Server 2012             6.2
Windows 7                       6.1
Windows Server 2008 R2          6.1
Windows Server 2008             6.0
Windows Vista                   6.0
Windows Server 2003 R2          5.2
Windows Server 2003             5.2
Windows XP 64-Bit Edition       5.2
Windows XP                      5.1
Windows 2000                    5.0
Windows ME                      4.90
Windows 98                      4.10



回答2:


You should be using WinVer.nsh to check the Windows version...




回答3:


You can also use the following key for more specific string details about the OS

Reg query "\hostname\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName

I've found to be present for Windows XP and aboeve....




回答4:


Just checked Windows 10 Pro and it is version 6.3




回答5:


updatable list located at MSDN : https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832.aspx

for now (March 2015) :

Operating system              Version number
----------------------------  --------------
Windows 10 Tech.Preview       10.0
Windows Server Techn.Preview  10.0
Windows 8.1                    6.3
Windows Server 2012 R2         6.3
Windows 8                      6.2
Windows Server 2012            6.2
Windows 7                      6.1
Windows Server 2008 R2         6.1
Windows Server 2008            6.0
Windows Vista                  6.0
Windows Server 2003 R2         5.2
Windows Server 2003            5.2
Windows XP 64-Bit Edition      5.2
Windows XP                     5.1
Windows 2000                   5.0


来源:https://stackoverflow.com/questions/14648796/currentversion-value-in-registry-for-each-windows-operating-system

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!