每个 Windows 操作系统的注册表中的 CurrentVersion 值

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14648796/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 10:14:30  来源:igfitidea点击:

CurrentVersion value in registry for each windows operating system

windowsregistrynsis

提问by Ajinkya

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

我正在开发 nsis 安装程序。为此,我想知道CurrentVersion每个操作系统的价值

HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion"

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

例如:我的机器上安装了 Windows 7 Professional,CurrentVersion值为6.1.

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

任何人都可以列出自 Windows 98 以来的所有 Windows 操作系统吗?

回答by Ajinkya

These are the required versions of windows operating systems:

这些是所需的 Windows 操作系统版本:

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

回答by Anders

You should be using WinVer.nshto check the Windows version...

您应该WinVer.nsh用来检查 Windows 版本...

回答by Frugalnaire

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

注册查询 "\hostname\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName

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

我发现适用于 Windows XP 及以上版本....

回答by Phil B.

Just checked Windows 10 Pro and it is version 6.3

刚刚检查了 Windows 10 Pro,它是 6.3 版

回答by osterik

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

位于 MSDN 的可更新列表:https: //msdn.microsoft.com/en-us/library/windows/desktop/ms724832.aspx

for now (March 2015) :

目前(2015 年 3 月):

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