判定方法
レジストリ エディター(regedit.exe や reg.exe)で、次のサブキーを開きます。
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
C:\>reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" | find "Release"
Release REG_DWORD 0x70805
Full サブキーが存在しない場合は、.NET Framework 4.5 以降がインストールされていません。
Release という名前の DWORD 値を確認します。Release DWORD がある場合は、.NET Framework 4.5 以降がコンピューターにインストールされていることを示します。
4.8以上 Release DWORD値が ******以上 [NEW]
4.7.2以上 Release DWORD値が 461808以上
4.7.1以上 Release DWORD値が 461308以上
4.7以上 Release DWORD値が 460798以上
4.6.2以上 Release DWORD値が 394802以上
4.6.1以上 Release DWORD値が 394254以上
4.6以上 Release DWORD値が 393295以上
4.5.2以上 Release DWORD値が 379893以上
4.5.1以上 Release DWORD値が 378675以上
4.5以上 Release DWORD値が 378389以上
4.5未満 Release キーが存在しない
※OS毎のRelease DWORD値
Phase1:Win10登場前。
|Version |OS不問 |Vista |Win7SP1 |Win8 |Win8.1 |
|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|
|4.5 |378389 |← |← |← |← |
|4.5.1 |OS個別 |378758 |← |← |378675 |
|4.5.2 |379893 |← |← |← |← |
Phase2:Win10は4.6以上が必ずインストールされている
Version | OS不問 | Vista | Win7SP1 | Win8/8.1 | Win10 |
---|---|---|---|---|---|
4.6 | OS個別 | 393297 | ← | ← | 393295 |
Phase3:Vistaサポート終了以降
Version | OS不問 | Win7SP1/8/8.1 | Win10 | AU | CU | FCU | RS4 | RS5 |
---|---|---|---|---|---|---|---|---|
4.6.1 | OS個別 | 394271 | 394254 | N/A | N/A | N/A | N/A | N/A |
4.6.2 | OS個別 | 394806 | ← | 394802 | N/A | N/A | N/A | N/A |
4.7 | OS個別 | 460805 | ← | ← | 460798 | N/A | N/A | N/A |
4.7.1 | OS個別 | 461310 | ← | ← | ← | 461308 | N/A | N/A |
4.7.2 | OS個別 | 461814 | ← | ← | ← | ← | 461808 | 461814 |
4.8 | OS個別 | ****** | ← | ← | ← | ← | ← | ****** |
※AU=Windows 10 バージョン 1607 (Anniversary Update)
※CU=Windows 10 バージョン 1703 (Creators Update)
※FCU=Windows 10 バージョン 1709 (Fall Creators Update)
※RS4=Windows 10 バージョン 1803 (April 2018 Update)
※RS5=Windows 10 バージョン 1809 (October 2018 Update)
Release値判定コマンド
reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"| find "Release"
How to: Determine Which .NET Framework Versions Are Installed
2016 年 1 月 12 日からはマイクロソフトは .NET Framework 4、4.5、および 4.5.1にセキュリティ更新プログラム、テクニカルサポートや修正プログラムを提供されなくなります。.NET Framework 4.6.1、4.6、4.5.2、3.5SP1 を含む他のすべてのバージョンは、それらの確立されているライフサイクルの間サポートされます。
http://blogs.msdn.com/b/dotnet/archive/2015/12/09/support-ending-for-the-net-framework-4-4-5-and-4-5-1.aspx
.NET Framework 4.6.2 用のブートストラップ (setup.exe) の問題
https://blogs.msdn.microsoft.com/jpvsblog/2016/09/13/netfx4-6-2bootstrapissue/
Welcome to the .NET Framework 4.7.1 Early Access!
https://blogs.msdn.microsoft.com/dotnet/2017/08/07/welcome-to-the-net-framework-4-7-1-early-access/
Microsoft .NET Framework 4.7.1 は、互換性が高い、Microsoft .NET Framework 4、4.5、4.5.1、4.5.2、4.6、4.6.1、4.6.2、4.7 のインプレース更新です。インターネットに接続できないため Web インストーラーが使用できない場合にオフライン パッケージを使用できます。
Announcing the .NET Framework 4.7.2
https://blogs.msdn.microsoft.com/dotnet/2018/04/30/announcing-the-net-framework-4-7-2/?utm_source=vs_developer_news&utm_medium=referral