检测电脑安装的net framework版本

https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx

To find .NET Framework versions by viewing the registry (.NET Framework 1-4)

  1. On the Start menu, choose Run.
  2. In the Open box, enter regedit.exe.

    You must have administrative credentials to run regedit.exe.

  3. In the Registry Editor, open the following subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP

    The installed versions are listed under the NDP subkey. The version number is stored in the Version entry. For the .NET Framework 4 the Versionentry is under the Client or Full subkey (under NDP), or under both subkeys.

    Note

    The "NET Framework Setup" folder in the registry does not begin with a period.

To find .NET Framework versions by viewing the registry (.NET Framework 4.5 and later)

  1. On the Start menu, choose Run.
  2. In the Open box, enter regedit.exe.

    You must have administrative credentials to run regedit.exe.

  3. In the Registry Editor, open the following subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full

    Note that the path to the Full subkey includes the subkey Net Framework rather than .NET Framework.

    Note

    If the Full subkey is not present, then you do not have the .NET Framework 4.5 or later installed.

    Check for a DWORD value named Release. The existence of the Release DWORD indicates that the .NET Framework 4.5 or newer has been installed on that computer.

    The value of the Release DWORD indicates which version of the .NET Framework is installed.


    Value of the Release DWORD


    Version


    378389


    .NET Framework 4.5


    378675


    .NET Framework 4.5.1 installed with Windows 8.1 or Windows Server 2012 R2


    378758


    .NET Framework 4.5.1 installed on Windows 8, Windows 7 SP1, or Windows Vista SP2


    379893


    .NET Framework 4.5.2


    On Windows 10 systems: 393295

    On all other OS versions: 393297


    .NET Framework 4.6


    On Windows 10 November Update systems: 394254

    On all other OS versions: 394271


    .NET Framework 4.6.1


    On Windows 10 Anniversary Update: 394802

    On all other OS versions: 394806


    .NET Framework 4.6.2

To find .NET Framework versions by querying the registry in code (.NET Framework 1-4)

  • Use the Microsoft.Win32.RegistryKey class to access the Software\Microsoft\NET Framework Setup\NDP\ subkey under HKEY_LOCAL_MACHINE in the Windows registry.

    The following code shows an example of this query.

时间: 2024-08-07 16:48:23

检测电脑安装的net framework版本的相关文章

Inno Setup 检测已安装的.NET Framework 版本

翻译自:http://kynosarges.org/DotNetVersion.html 由 Jordan Russell 写的 Inno Setup 是一个伟大的安装脚本程序,但缺乏一个内置的函数来确定安装在目标机器上的.NET Framework版本.幸运的是,它很容易使用 Pascal 脚本语言来实现这样的功能. 脚本 在下面的 Inno Setup的 脚本代码块,函数 IsDotNetDetected 检查指定的.NET Framework 版本和至少指定的服务包级别是否被安装了.所有列

Windows查看电脑上安装的.Net Framework版本的五种方法(转)

1.查看安装文件判断Framwork版本号 打开资源管理器,比如我的电脑,再地址栏输入%systemroot%\Microsoft.NET\Framework后单击“转到”或者按回车. 在新文件夹中查看v字开头的下级文件夹名,最大的数字就是当前计算机上的.Net FrameWork版本号.如文件夹名最大为v4.0.30319,那么本机上安装的.Net Framework版本就是4.0: 2.JavaScript脚本判断.Net Framework版本 在网页浏览器的地址栏输入下面的命令后单击“转

检测是否安装了 .NET Framework 3.5

此脚本是为 Internet Explorer 设计的.    其他浏览器可能在 UserAgent 字符串中不包含 .NET CLR 信息. <HTML> <HEAD> <TITLE>Test for the .NET Framework 3.5</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" /> &l

如何查看本机上安装的.NET Framework版本

在开始菜单选择"运行", 或者快捷键 “windows键+R” 在命令窗口输入regedit.exe,打开注册表 在注册表中定位到如下节点 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP 安装过的.NET Framework都列在NDP目录下 对于.NET Framework 4.5或之后的版本查看方法 如上打开注册表并定位到 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET

查看.Net Framework版本的方法

乐博网最新补充(乐博网一步步教你如何最快查看本机.net framework的版本): 方法一: 第一步: 打开“我的电脑“,在地址栏输入  %systemroot%\Microsoft.NET\Framework 如图: 第二步:从列出来的文件夹中,我们可以看到v1.0.3705    v2.0.50727   v3.0  v3.5 而这些目录显示的最高版本号即本机Microsoft .NET Framework 版本号,也就是3.5的. 如果你最高版本的目录只有v2.0.50727   那就

NET Framework 版本和依赖关系

原文:https://docs.microsoft.com/zh-cn/dotnet/framework/migration-guide/versions-and-dependencies 每个版本的 .NET framework 都包含公共语言运行时 (CLR).基类库和其他托管库. 本主题按版本介绍了 .NET Framework 的关键功能,提供了有关基础 CLR 版本和相关开发环境的信息,并标识了 Windows 操作系统所安装的版本. 备注 若要了解如何下载和安装 .NET Frame

.NET Framework 版本和依赖关系[微软官方文档]

.NET Framework 版本和依赖关系 微软官方文档: https://docs.microsoft.com/zh-cn/dotnet/framework/migration-guide/versions-and-dependencies 每个版本的 .NET framework 都包含公共语言运行时 (CLR).基类库和其他托管库. 本主题按版本介绍了 .NET Framework 的关键功能,提供了有关基础 CLR 版本和相关开发环境的信息,并标识了 Windows 操作系统所安装的版

查看Windows电脑上.NET Framework版本的方法(找了好久的方法)

照网上大多数人的方法,在路径 C:\Windows\Microsoft.NET\Framework 下可以查看到.NET Framework的版本,不过无论Win7还是Win10,显示都是这样的: 那我们电脑上的最高版本都是4.0吗?并不是,无论你当前的版本是4.0, 4.5, 4.6, 4.7,均是这样.所以可以在命令提示符中输入以下命令查看: cd %WINDIR%\Microsoft.NET\Framework\v4.0.30319 MSBuild /version 像我这样的话版本至少到

查看本地安装的 .NET Framework(CLR) 版本

方法一:%SystemRoot%\Microsoft.NET\Framework 要了解安装了哪些版本的 .NET Framework,可以通过检查下面目录的子目录解决: %SystemRoot%\Microsoft.NET\Framework %SystemRoot%\Microsoft.NET\Framework64 (%SystemRoot%即目录C:\Windows) 也可以在命令行中输入下面命令,筛选出我们关注的结果: %SystemRoot%\Microsoft.NET\Framew