Net Framework đối với dân IT thì không có gì lạ nhưng với đa số người thông thường như họ thì cả một bầu trời phức tạp. Và thường thì người tiêu dùng sẽ không xem xét sự mãi mãi của nó…cho đến lúc thực sự cần. Nếu đã vậy, bạn có biết cách kiểm tra net framework win 10 trên máy vi tính không? chất vấn nó thì cần làm hồ hết gì? Hãy cùng theo dõi bài viết để biết thêm chi tiết nhé.

Bạn đang xem: Kiểm tra net framework trên win 10


Nội dung bài viết

2 những cách đánh giá net framework win 10 sẽ được thiết lập chưa?3 kiểm tra net framework win 10 phiên bạn dạng 4.5 trở lên5 cách kiểm tra net framework bên trên win 10 bởi công cụ một mặt thứ 3

Net framework win 10 là gì?

Net framework là chương trình cung cấp của mailinhschool.edu.vn giúp cho những ứng dụng chạy bên trên net, mặt khác cũng hỗ trợ những ứng dụng đang làm việc ở bên trên hệ điều hành quản lý Windows.

Nền tảng này cung ứng những đoạn code đã được lập trình sẵn nhằm giao hàng cho các chương trình thiết kế và thống trị thực thi hầu như chương trình viết bên trên framework.

*
Kiểm tra net framework win 10

Thông thường thì chương trình này hay được setup sẵn trong các hệ quản lý Windows, nhưng đôi khi xui xui thì chúng ta phải mua để rất có thể chạy được những chương trình net.

Một số tác dụng khác của Net framework trên máy tính xách tay phải nói đến như: cai quản bộ nhớ, sinh sản nguồn phát triển công nghệ, hỗ trợ đa ngôn ngữ, tương xứng với hệ điều hành, tạo môi trường lập trình phù hợp…

Các giải pháp kiểm tra net framework win 10 đã được thiết đặt chưa?

Kiểm tra vào Programs và Features

Bước 1: bật Control Panel tiếp nối di mang đến mục View By rồi chọn Large icon hoặc Smaill icon. Tiếp nối bấm lựa chọn Programs và Features.

Bước 2: sau thời điểm cửa sổ xuất hiện, hãy kiếm tìm xem có chương trình làm sao tên mailinhschool.edu.vn .net Framework ko nhé. Nếu có thì máy chúng ta đã được thiết lập rồi đấy.

*

Kiểm tra net framework win 10 bằng Windows Features

Bước 1: Mở Control Panel tra cứu mục View by rồi lựa chọn Large icon hoặc Small icon. Rồi lựa chọn Programs và Features.

Kiểm tra net framework win 10 bằng Windows Features

Bước 2: chọn Turn Windows features on or off ở góc cạnh Menu mặt trái. Từ bây giờ sẽ xuất hiện một cửa sổ, chú ý xem tất cả mục .NET Framework ko nhé. Còn nếu như không thấy thì tức là máy tính không được cài đặt.


*

*

*

*

Bước 2: hành lang cửa số Security Setting – mạng internet Zone hiện tại lên, nếu khách hàng thấy xuất hiện thêm .NET Framework thì giải pháp kiểm tra net framework win 10 vẫn đúng rồi đấy.

*

Kiểm tra net framework bên trên win 10 bằng ổ C

Bước 1: lựa chọn ổ C rồi mở thư mục Windows

*

Bước 2: lựa chọn tiếp thư mục Microsogt.NET bây giờ mà thấy gồm thư mục Framework cùng Framework64 như hình dưới thì mày chúng ta đã được download rồi đấy.


Kiểm tra net framework win 10 phiên bản 4.5 trở lên

Sử dụng Registry Editor

Bước 1: Mở hộp thoại Run bằng phương pháp nhấn tổng hợp phím Ctrl + R, sau đó nhập Regedit rồi thừa nhận OK.

Kiểm tra net framework win 10 phiên bản 4.5 trở lên

 

Bước 2: Hãy truy vấn theo mặt đường dẫn:

HKEY_LOCAL_MACHINESOFTWAREmailinhschool.edu.vnNET Framework SetupNDPv4Full

*

Bước 3: sau thời điểm truy cập con đường dẫn, chú ý sang bảng bên phải, tìm Release. Ví như trong hàng này còn có REG_DWORD thì máy bạn đã được cài bạn dạng 4.5 trở lên rồi đấy. Nếu như muốn biết đúng mực bạn đã ở phiên bạn dạng nào thì rất có thể tìm cực hiếm Release DWORD như hình thứ 2 phía dưới.

*

Bước 4: Đối chiếu quý giá Release DWORD để khẳng định phiên bạn dạng .NET Framework.

*

Sử dụng Command Prompt để soát sổ net framework trên win 10

Bước 1: Mở hộp thoại Run bằng tổng đúng theo phím Ctrl + R rồi thừa nhận OK.

*

Bước 2: lúc này hộp thoại Command Prompt mở ra, các bạn hãy chép lại câu lệnh “reg query “HKLMSOFTWAREmailinhschool.edu.vnNet Framework SetupNDPv4” /s” vào Command Prompt với nhấn Enter.

*

Bước 3: hộp thoại Command Prompt đang trả về những thông tin mà bạn đang kiểm tra net framework win 10. Quan sát vào mục Version, giả dụ thấy hiển thị thông số như dưới hình thì máy tính của chúng ta đã thiết lập phiên bạn dạng 4.5 trở lên.

*

Dùng Power
Shell để kiểm tra net framework bên trên win 10

Bước 1: Mở vỏ hộp Run bằng phương pháp nhấn tổng hợp phím Ctrl + R, tiếp nối nhập “Powershell” để mở Power
Shell
cùng nhấn OK.

*

Bước 2: sau thời điểm hộp thoại hiện lên, bạn hãy chép lệnh:

Get-Child
Item ‘HKLM:SOFTWAREmailinhschool.edu.vnNET Framework SetupNDPv4Full’ | Get-Item
Property
Value -Name Release | Foreach-Object $_ -ge 378389
” dán lại Command Prompt và nhấn Enter.

*

Bước 3: Nếu hiệu quả báo là True thì máy bạn đã được sở hữu đặt, nếu là False thì máy chúng ta chưa thiết đặt phiên phiên bản nào 4.5 cả.

*

Lưu ý: chúng ta có thể kiểm tra net framework win 10 từ những phiên phiên bản 4.5 trở yêu cầu khác bằng cách thay đổi các giá trị Release DWORD ngơi nghỉ phía cuối.

Cách đánh giá net framework win 10 phiên phiên bản cũ hơn

Bước 1: Nhấn tổng hợp phím Ctrl + R tiếp nối nhập regedit cùng nhấn OK.

Bước 2: truy vấn vào đường truyền sau:

HKEY_LOCAL_MACHINESOFTWAREmailinhschool.edu.vnNET Framework SetupNDP

*

Bước 3: lựa chọn từng thư mục để kiểm soát phiên bản như hình bên dưới đây. Tiếp đến nhìn sang bên phải, tra cứu Version. Ở cột Data đã thấy hiển thị thông số kỹ thuật dưới dạng 4.x.xxxxx như hình thứ 2 này thì chính là đã được sở hữu đặt.


Cách kiểm tra net framework trên win 10 bằng công rứa một bên thứ 3

Raymondcc .NET Detector

Đây là một trong những công cố kỉnh giúp bạn dùng hoàn toàn có thể kiểm tra net framework win 10 vẫn được cài hay chưa. Bạn chỉ cần chạy Raymondcc .NET Detector thì đã thấy đầy đủ chữ đen lộ diện nếu như máy tính của chúng ta đã được tải đặt, color xám là chưa download đặt.

*

Đối với phần mềm này, chúng ta cũng có thể nhấn vào các phiên bạn dạng chưa mua đặt, hệ thống sẽ tự cho trang download xuống đúng phiên bản đó.

Xem thêm: Bảng Xếp Hạng Ngoại Hạng Anh 2018 19, Bảng Xếp Hạng Ngoại Hạng Anh 2018/2019

ASoft .NET Version Detector

ASoft .NET Version Detector cũng tương tự như phần mềm phía trên, lịch trình này để giúp bạn quét toàn bộ các phiên bản đã thiết lập hoặc chưa. Công tác này cũng cung cấp liên kết đến các trang download xuống của những phiên bạn dạng mà lắp thêm tính của người sử dụng chưa có.

*

Trên đấy là các phương pháp kiểm tra net framework win 10 mà chúng tôi muốn nhắc nhở đến cho bạn. Một trong những trường hợp các bạn sẽ không phải kiểm tra coi nó ở trong phiên bạn dạng nào. Nhiều chương trình thì sẽ chỉ dẫn thông báo cho chính mình biết. Một số khác sẽ cài đặt phiên bản cần thiết giúp cho bạn tiết kiệm thời gian. Dẫu vậy vẫn cấp thiết phủ nhận biết kiểm tra net framework win 10 cũng là một lợi thế.

In this article

Users can install & run multiple versions of .NET Framework on their computers. When you develop or deploy your app, you might need to know which .NET Framework versions are installed on the user"s computer. The registry contains a menu of the versions of .NET Framework installed on the computer.


Note

This article is specific lớn .NET Framework. To lớn determine which .NET Core và .NET 5+ SDKs and runtimes are installed, see How to kiểm tra that .NET is already installed.


.NET Framework consists of two main components, which are versioned separately:

A set of assemblies, which are collections of types and resources that provide the functionality for your apps. .NET Framework and the assemblies nội dung the same version number. For example, .NET Framework versions include 4.5, 4.6.1, & 4.7.2.

Community-maintained tools are available khổng lồ help detect which .NET Framework versions are installed:

For information about detecting the installed updates for each version of .NET Framework, see How to: Determine which .NET Framework updates are installed.

Determine which .NET implementation and version an ứng dụng is running on

You can use the Runtime
Information.Framework
Description property to query for which .NET implementation và version your app is running on. If the ứng dụng is running on .NET Framework, the output đầu ra will be similar to:

.NET Framework 4.8.4250.0By comparison, if the app is running on .NET core or .NET 5+, the output đầu ra will be similar to:

.NET vi xử lý core 3.1.9.NET 5.0.0

Detect .NET Framework 4.5 và later versions

The version of .NET Framework (4.5 and later) installed on a machine is listed in the registry at HKEY_LOCAL_MACHINESOFTWAREmailinhschool.edu.vnNET Framework SetupNDPv4Full. If the Full subkey is missing, then .NET Framework 4.5 or above isn"t installed.


The Release REG_DWORD value in the registry represents the version of .NET Framework installed.

.NET Framework version
Value of Release
.NET Framework 4.5All Windows operating systems: 378389
.NET Framework 4.5.1On Windows 8.1 và Windows hệ thống 2012 R2: 378675On all other Windows operating systems: 378758
.NET Framework 4.5.2All Windows operating systems: 379893
.NET Framework 4.6On Windows 10: 393295On all other Windows operating systems: 393297
.NET Framework 4.6.1On Windows 10 November Update systems: 394254On all other Windows operating systems (including Windows 10): 394271
.NET Framework 4.6.2On Windows 10 Anniversary Update & Windows server 2016: 394802On all other Windows operating systems (including other Windows 10 operating systems): 394806
.NET Framework 4.7On Windows 10 Creators Update: 460798On all other Windows operating systems (including other Windows 10 operating systems): 460805
.NET Framework 4.7.1On Windows 10 Fall Creators Update & Windows Server, version 1709: 461308On all other Windows operating systems (including other Windows 10 operating systems): 461310
.NET Framework 4.7.2On Windows 10 April 2018 Update & Windows Server, version 1803: 461808On all Windows operating systems other than Windows 10 April 2018 Update and Windows Server, version 1803: 461814
.NET Framework 4.8On Windows 10 May 2019 Update và Windows 10 November 2019 Update: 528040On Windows 10 May 2020 Update, October 2020 Update, May 2021 Update, November 2021 Update, and 2022 Update: 528372On Windows 11 and Windows hệ thống 2022: 528449On all other Windows operating systems (including other Windows 10 operating systems): 528049
.NET Framework 4.8.1On Windows 11 2022 Update: 533320All other Windows operating systems: 533325

Minimum version

To determine whether a minimum version of .NET Framework is present, kiểm tra for a Release REG_DWORD value that"s greater than or equal lớn the corresponding value listed in the following table. For example, if your application runs under .NET Framework 4.8 or a later version, chạy thử for a Release REG_DWORD value that"s greater than or equal to 528040.

.NET Framework version
Minimum value
.NET Framework 4.5378389
.NET Framework 4.5.1378675
.NET Framework 4.5.2379893
.NET Framework 4.6393295
.NET Framework 4.6.1394254
.NET Framework 4.6.2394802
.NET Framework 4.7460798
.NET Framework 4.7.1461308
.NET Framework 4.7.2461808
.NET Framework 4.8528040
.NET Framework 4.8.1533320

Use Registry Editor

From the Start menu, choose Run, enter regedit, và then select OK.

(You must have administrative credentials to run regedit.)

In the Registry Editor, open the following subkey: HKEY_LOCAL_MACHINESOFTWAREmailinhschool.edu.vnNET Framework SetupNDPv4Full. If the Full subkey isn"t present, then you don"t have .NET Framework 4.5 or later installed.

Check for a REG_DWORD entry named Release. If it exists, then you have .NET Framework 4.5 or later installed. Its value corresponds lớn a particular version of .NET Framework. In the following figure, for example, the value of the Release entry is 528040, which is the release key for .NET Framework 4.8.

*

Use Power
Shell to kiểm tra for a minimum version

Use Power
Shell commands to check the value of the Release entry of the HKEY_LOCAL_MACHINESOFTWAREmailinhschool.edu.vnNET Framework SetupNDPv4Full subkey.

The following examples kiểm tra the value of the Release entry to determine whether .NET Framework 4.6.2 or later is installed. This code returns True if it"s installed and False otherwise.

(Get-Item
Property
Value -Literal
Path "HKLM:SOFTWAREmailinhschool.edu.vnNET Framework SetupNDPv4Full" -Name Release) -ge 394802

Query the registry using code

The following example checks the value of the Release entry in the registry lớn find the versions of .NET Framework 4.5-4.8.1 that are installed.


Tip

Add the directive using mailinhschool.edu.vn.Win32 or Imports mailinhschool.edu.vn.Win32 at the vị trí cao nhất of your code tệp tin if you haven"t already done so.


"SOFTWAREmailinhschool.edu.vnNET Framework SetupNDPv4Full";using (var ndp
Key = Registry
Key.Open
Base
Key(Registry
Hive.Local
Machine, Registry
View.Registry32).Open
Sub
Key(subkey)) if (ndp
Key != null && ndp
Key.Get
Value("Release") != null) Console.Write
Line($".NET Framework Version: Check
For45Plus
Version((int)ndp
Key.Get
Value("Release"))"); else Console.Write
Line(".NET Framework Version 4.5 or later is not detected."); // Checking the version using >= enables forward compatibility.string Check
For45Plus
Version(int release
Key) if (release
Key >= 533320) return "4.8.1 or later"; if (release
Key >= 528040) return "4.8"; if (release
Key >= 461808) return "4.7.2"; if (release
Key >= 461308) return "4.7.1"; if (release
Key >= 460798) return "4.7"; if (release
Key >= 394802) return "4.6.2"; if (release
Key >= 394254) return "4.6.1"; if (release
Key >= 393295) return "4.6"; if (release
Key >= 379893) return "4.5.2"; if (release
Key >= 378675) return "4.5.1"; if (release
Key >= 378389) return "4.5"; // This code should never execute. A non-null release key should mean // that 4.5 or later is installed. Return "No 4.5 or later version detected";Private Sub Get45Plus
From
Registry() Const subkey As String = "SOFTWAREmailinhschool.edu.vnNET Framework SetupNDPv4Full" Using ndp
Key As Registry
Key = Registry
Key.Open
Base
Key(Registry
Hive.Local
Machine, Registry
View.Registry32).Open
Sub
Key(subkey) If ndp
Key Is
Not Nothing And
Also ndp
Key.Get
Value("Release") Is
Not Nothing Then Console.Write
Line($".NET Framework Version: Check
For45Plus
Version(ndp
Key.Get
Value("Release"))") Else Console.Write
Line(".NET Framework Version 4.5 or later is not detected.") over If over Using
End Sub' Checking the version using >= enables forward compatibility.Private Function Check
For45Plus
Version(release
Key As Integer) As String If release
Key >= 533320 Then Return "4.8.1 or later" Else
If release
Key >= 528040 Then Return "4.8" Else
If release
Key >= 461808 Then Return "4.7.2" Else
If release
Key >= 461308 Then Return "4.7.1" Else
If release
Key >= 460798 Then Return "4.7" Else
If release
Key >= 394802 Then Return "4.6.2" Else
If release
Key >= 394254 Then Return "4.6.1" Else
If release
Key >= 393295 Then Return "4.6" Else
If release
Key >= 379893 Then Return "4.5.2" Else
If release
Key >= 378675 Then Return "4.5.1" Else
If release
Key >= 378389 Then Return "4.5" kết thúc If ' This code should never execute. A non-null release key should mean ' that 4.5 or later is installed. Return "No 4.5 or later version detected"End Function
The example displays output like the following:

.NET Framework Version: 4.6.1

Query the registry using code Power
Shell

The following example uses Power
Shell to kiểm tra the value of the Release entry in the registry khổng lồ find the versions of .NET Framework 4.5-4.8.1 that are installed:

$release = Get-Item
Property
Value -Literal
Path "HKLM:SOFTWAREmailinhschool.edu.vnNET Framework SetupNDPv4Full" -Name Releaseswitch ($release) $_ -ge 533320 $version = "4.8.1 or later"; break $_ -ge 528040 $version = "4.8"; break $_ -ge 461808 $version = "4.7.2"; break $_ -ge 461308 $version = "4.7.1"; break $_ -ge 460798 $version = "4.7"; break $_ -ge 394802 $version = "4.6.2"; break $_ -ge 394254 $version = "4.6.1"; break $_ -ge 393295 $version = "4.6"; break $_ -ge 379893 $version = "4.5.2"; break $_ -ge 378675 $version = "4.5.1"; break $_ -ge 378389 $version = "4.5"; break mặc định $version = $null; break if ($version) Write-Host -Object ".NET Framework Version: $version" else Write-Host -Object ".NET Framework Version 4.5 or later is not detected."This example follows the recommended practice for version checking:

It checks whether the value of the Release entry is greater than or equal to the value of the known release keys.It checks in order from most recent version khổng lồ earliest version.

Detect .NET Framework 1.0 through 4.0

Each version of .NET Framework from 1.1 to 4.0 is listed as a subkey at HKEY_LOCAL_MACHINESOFTWAREmailinhschool.edu.vnNET Framework SetupNDP. The following table lists the path to lớn each .NET Framework version. For most versions, there"s an Install REG_DWORD value of 1 to lớn indicate this version is installed. In these subkeys, there"s also a Version REG_SZ value that contains a version string.


Framework Version
Registry Subkey
Value
1.0HKLMSoftwaremailinhschool.edu.vn.NETFrameworkPolicyv1.03705Install REG_SZ equals 1
1.1HKLMSoftwaremailinhschool.edu.vnNET Framework SetupNDPv1.1.4322Install REG_DWORD equals 1
2.0HKLMSoftwaremailinhschool.edu.vnNET Framework SetupNDPv2.0.50727Install REG_DWORD equals 1
3.0HKLMSoftwaremailinhschool.edu.vnNET Framework SetupNDPv3.0SetupInstall
Success
REG_DWORD equals 1
3.5HKLMSoftwaremailinhschool.edu.vnNET Framework SetupNDPv3.5Install REG_DWORD equals 1
4.0 Client ProfileHKLMSoftwaremailinhschool.edu.vnNET Framework SetupNDPv4ClientInstall REG_DWORD equals 1
4.0 Full ProfileHKLMSoftwaremailinhschool.edu.vnNET Framework SetupNDPv4FullInstall REG_DWORD equals 1

Important

If the app you"re running is 32-bit và running in 64-bit Windows, the registry paths will be different than previously listed. The 64-bit registry is available in the HKEY_LOCAL_MACHINESOFTWAREWow6432Node subkey. For example, the registry subkey for .NET Framework 3.5 is HKEY_LOCAL_MACHINESOFTWAREWow6432Nodemailinhschool.edu.vnNET Framework SetupNDPv3.5.


Notice that the registry path to lớn the .NET Framework 1.0 subkey is different from the others.

Use Registry Editor (older framework versions)

From the Start menu, choose Run, enter regedit, và then select OK.

You must have administrative credentials to run regedit.

Query the registry using code (older framework versions)

Use the mailinhschool.edu.vn.Win32.Registry
Key class khổng lồ access the HKEY_LOCAL_MACHINESOFTWAREmailinhschool.edu.vnNET Framework SetupNDP subkey in the Windows registry.


Important

If the app you"re running is 32-bit and running in 64-bit Windows, the registry paths will be different than previously listed. The 64-bit registry is available in the HKEY_LOCAL_MACHINESOFTWAREWow6432Node subkey. For example, the registry subkey for .NET Framework 3.5 is HKEY_LOCAL_MACHINESOFTWAREWow6432Nodemailinhschool.edu.vnNET Framework SetupNDPv3.5.


The following example finds the versions of .NET Framework 1-4 that are installed:

// xuất hiện the registry key for the .NET Framework entry.using (Registry
Key ndp
Key = Registry
Key.Open
Base
Key(Registry
Hive.Local
Machine, Registry
View.Registry32). Open
Sub
Key(
"SOFTWAREmailinhschool.edu.vnNET Framework SetupNDP")) foreach (var version
Key
Name in ndp
Key.Get
Sub
Key
Names()) // Skip .NET Framework 4.5 version information. If (version
Key
Name == "v4") continue; if (version
Key
Name.Starts
With("v")) Registry
Key version
Key = ndp
Key.Open
Sub
Key(version
Key
Name); // Get the .NET Framework version value. Var name = (string)version
Key.Get
Value("Version", ""); // Get the service pack (SP) number. Var sp = version
Key.Get
Value("SP", "").To
String(); // Get the installation flag. Var install = version
Key.Get
Value("Install", "").To
String(); if (string.Is
Null
Or
Empty(install)) // No install info; it must be in a child subkey. Console.Write
Line($"version
Key
Name name"); else if (install == "1") // Install = 1 means the version is installed. If (!string.Is
Null
Or
Empty(sp)) Console.Write
Line($"version
Key
Name name SPsp"); else Console.Write
Line($"version
Key
Name name"); if (!string.Is
Null
Or
Empty(name)) continue; // else print out info from subkeys... // Iterate through the subkeys of the version subkey. Foreach (var sub
Key
Name in version
Key.Get
Sub
Key
Names()) Registry
Key sub
Key = version
Key.Open
Sub
Key(sub
Key
Name); name = (string)sub
Key.Get
Value("Version", ""); if (!string.Is
Null
Or
Empty(name)) sp = sub
Key.Get
Value("SP", "").To
String(); install = sub
Key.Get
Value("Install", "").To
String(); if (string.Is
Null
Or
Empty(install)) // No install info; it must be later. Console.Write
Line($" version
Key
Name name"); else if (install == "1") if (!string.Is
Null
Or
Empty(sp)) Console.Write
Line($" sub
Key
Name name SPsp"); else Console.Write
Line($" sub
Key
Name name"); ' Opens the registry key for the .NET Framework entry.Using ndp
Key As Registry
Key = Registry
Key.Open
Base
Key(Registry
Hive.Local
Machine, Registry
View.Registry32). Open
Sub
Key("SOFTWAREmailinhschool.edu.vnNET Framework SetupNDP") For Each version
Key
Name In ndp
Key.Get
Sub
Key
Names() ' Skip .NET Framework 4.5 and later. If version
Key
Name = "v4" Then Continue For If version
Key
Name.Starts
With("v") Then Dim version
Key As Registry
Key = ndp
Key.Open
Sub
Key(version
Key
Name) ' Get the .NET Framework version value. Dim name = Direct
Cast(version
Key.Get
Value("Version", ""), String) ' Get the service pack (SP) number. Dim sp = version
Key.Get
Value("SP", "").To
String() Dim install = version
Key.Get
Value("Install", "").To
String() If String.Is
Null
Or
Empty(install) Then ' No install info; it must be in a child subkey. Console.Write
Line($"version
Key
Name name") Else
If install = "1" Then If Not String.Is
Null
Or
Empty(sp) Then Console.Write
Line($"version
Key
Name name SPsp") Else Console.Write
Line($"version
Key
Name name") over If end If If Not String.Is
Null
Or
Empty(name) Then Continue For over If For Each sub
Key
Name In version
Key.Get
Sub
Key
Names() Dim sub
Key As Registry
Key = version
Key.Open
Sub
Key(sub
Key
Name) name = Direct
Cast(sub
Key.Get
Value("Version", ""), String) If Not String.Is
Null
Or
Empty(name) Then sp = sub
Key.Get
Value("SP", "").To
String() end If install = sub
Key.Get
Value("Install", "").To
String() If String.Is
Null
Or
Empty(install) Then ' No install info; it must be later. Console.Write
Line($" version
Key
Name name") Else
If install = "1" Then If Not String.Is
Null
Or
Empty(sp) Then Console.Write
Line($" sub
Key
Name name SPsp") Else Console.Write
Line($" sub
Key
Name name") end If end If Next end If Next
End Using
The example displays đầu ra similar to lớn the following:

Shell (older framework versions)The following example uses Power
Shell to check the value of the Release entry in the registry lớn find the versions of .NET Framework 1-4 that are installed:

Get-Child
Item -Path "HKLM:SOFTWAREmailinhschool.edu.vnNET Framework SetupNDP" |Where-Object ($_.PSChild
Name -ne "v4") -and ($_.PSChild
Name -like "v*") |For
Each-Object $name = $_.Version $sp = $_.SP $install = $_.Install if (-not $install) Write-Host -Object "$($_.PSChild
Name) $($name)" elseif ($install -eq "1") if (-not $sp) Write-Host -Object "$($_.PSChild
Name) $($name)" else Write-Host -Object "$($_.PSChild
Name) $($name) SP$($sp)" if (-not $name) $parent
Name = $_.PSChild
Name Get-Child
Item -Literal
Path $_.PSPath

Find CLR versions

The .NET Framework CLR installed with .NET Framework is versioned separately. There are two ways to lớn detect the version of the .NET Framework CLR: