zoukankan      html  css  js  c++  java
  • 检测电脑安装的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_MACHINESOFTWAREMicrosoftNET Framework SetupNDP

      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.

      System_CAPS_noteNote

      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_MACHINESOFTWAREMicrosoftNET Framework SetupNDPv4Full

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

      System_CAPS_noteNote

      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 registry entry for the .NET Framework 4.5.

        

      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 SoftwareMicrosoftNET Framework SetupNDP subkey under HKEY_LOCAL_MACHINE in the Windows registry.

      The following code shows an example of this query.

  • 相关阅读:
    MSSQLSERVER服务无法启动的解决方案
    引用类型和原始类型的对比(java)
    MVC中关于Membership类跟数据库的问题
    ASP.NET协作应用集成到trsids身份验证服务器的开发流程
    oracle的一知半解
    辨明你所从事的软件的类型
    sql数据库之间数据的转录
    设为首页 收藏(IE可用)
    如何缩减Try{}Catch{}Finally{}代码----定义一个公用的Try{}Catch{}Finally{}
    如何判断字符串是否存在数字
  • 原文地址:https://www.cnblogs.com/wucg/p/5860321.html
Copyright © 2011-2022 走看看