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.

最新文章

  1. Spark Shuffle数据处理过程与部分调优(源码阅读七)
  2. 新建一个UI窗口-XproerUI(MFC)教程
  3. win7,vs2010,asp.net项目中修改外部js文件,在调试时加载的还是旧文件
  4. duilib WindowImplBase BUG修复 --- 按一次ESC键, 关闭多个窗口
  5. 分布式架构高可用架构篇_01_zookeeper集群的安装、配置、高可用测试
  6. python 批量请求url
  7. zxing生成和解析二维码
  8. java鼠标与键盘事件监听
  9. ASP.NET自定义控件组件开发 第二章 继承WebControl的自定义控件
  10. 走进React
  11. this指针的值
  12. intellij idea快捷键字典
  13. Python_socket_UDP
  14. Linux Mint(ubuntu)如何汉化firefox浏览器?
  15. db2和oracle字段类型对比
  16. 【OCR技术系列之五】自然场景文本检测技术综述(CTPN, SegLink, EAST)
  17. scrapy+redis去重实现增量抓取
  18. Linux/shell: Concatenate multiple lines to one line
  19. spring配置详解-连接池配置
  20. JAVA CAS原理深度分析 volatile,偏向锁,轻量级锁

热门文章

  1. Open Xml SDK Word模板开发最佳实践(Best Practice)
  2. Unity Built-in Shader详解二
  3. BZOJ1397 : Ural 1486 Equal squares
  4. POJ 3661 (线性DP)
  5. JavaScript事件流
  6. [Unity2D]实现背景的移动
  7. 理解with(nolock)(转载)
  8. Js获取当前日期时间及其它格式化操作
  9. [文字雲產生器] Tagxedo 把文字串成雲、變成畫,印在 T-Shirt、馬克杯、詩袋….
  10. 记linux终端下怎样退出>