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?
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
You should be using WinVer.nsh
to check the Windows version...
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....
Just checked Windows 10 Pro and it is version 6.3
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