從 WINDOWS登錄資料庫(Regedit.exe) 檢查 .NET Framework 和 .NET6 是否有安裝

從 WINDOWS登錄資料庫(Regedit.exe) 檢查 .NET Framework 和 .NET6 是否有安裝

從 WINDOWS登錄資料庫(Regedit.exe) 檢查 .NET Framework 和 .NET6 是否有安裝


資料來源: https://stackoverflow.com/questions/15227634/check-for-net4-5-with-nsis

https://learn.microsoft.com/en-us/answers/questions/913327/correct-approach-to-check-for-net-6-installation.html


Check for .NET1.0 ~ .NET4.X

.NET1.0+: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\

.NET4.5+: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full


Correct approach to Check for .NET 6 runtime installation

For x64 versions: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.WindowsDesktop.App

For x86 versions: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x86\sharedfx\Microsoft.WindowsDesktop.App

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *