Microsoft .NET Runtime 8.0を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Microsoft.DotNet.Runtime.8 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DotNet.Runtime.8 -e --silentwinget uninstall --id Microsoft.DotNet.Runtime.8 -e --silentインストーラー別
64ビット · EXE(WiX Burn) · すべてのユーザー
サイレントインストール
dotnet-runtime-8.0.34-win-x64.exe /quietアンインストール
msiexec /x {AD51A5F8-4382-41E1-B4FE-642823C0E79C} /qn /norestart- MSIプロダクトコード
- {ad51a5f8-4382-41e1-b4fe-642823c0e79c}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ad51a5f8-4382-41e1-b4fe-642823c0e79c}
- DisplayVersion
- 8.0.34.36622
ARM64 · EXE(WiX Burn) · すべてのユーザー
サイレントインストール
dotnet-runtime-8.0.34-win-arm64.exe /quietアンインストール
msiexec /x {BA9303E2-C580-4CD6-8697-653A5A8E58F8} /qn /norestart- MSIプロダクトコード
- {ba9303e2-c580-4cd6-8697-653a5a8e58f8}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ba9303e2-c580-4cd6-8697-653a5a8e58f8}
- DisplayVersion
- 8.0.34.36622
32ビット · EXE(WiX Burn) · すべてのユーザー
サイレントインストール
dotnet-runtime-8.0.34-win-x86.exe /quietアンインストール
msiexec /x {A592AEA8-949E-49D6-8336-3C21D1E0670E} /qn /norestart- MSIプロダクトコード
- {a592aea8-949e-49d6-8336-3c21d1e0670e}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{a592aea8-949e-49d6-8336-3c21d1e0670e}
- DisplayVersion
- 8.0.34.36622
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-microsoft-net-runtime-8-0.ps1
$url = 'https://download.microsoft.com/download/d8dc2fbb-a1c3-4e7b-9af8-ecc8c7c71e3d/9696d119-c8d0-49ae-a7a0-1b12c118cb5e/dotnet-runtime-8.0.34-win-x64.exe'
$sha256 = 'CD57FD46BED9134F61B735EBC94592FA3872C6BA2C3562326A8EB47CF139CA75'
$file = Join-Path $env:TEMP 'dotnet-runtime-8.0.34-win-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet' -Wait install-microsoft-net-runtime-8-0.ps1
$url = 'https://download.microsoft.com/download/d8dc2fbb-a1c3-4e7b-9af8-ecc8c7c71e3d/a6e1eb12-1b80-4a0b-a29f-6841d9a65089/dotnet-runtime-8.0.34-win-arm64.exe'
$sha256 = '5569A82CBA262FA2B51B300C6E512D73B03958E5711758D063EF96A743EE707B'
$file = Join-Path $env:TEMP 'dotnet-runtime-8.0.34-win-arm64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet' -Wait install-microsoft-net-runtime-8-0.ps1
$url = 'https://download.microsoft.com/download/d8dc2fbb-a1c3-4e7b-9af8-ecc8c7c71e3d/829e7071-044d-4e2e-8eed-d157b56643e7/dotnet-runtime-8.0.34-win-x86.exe'
$sha256 = '7309F41A395EACCED0520801FBF0EC832BEE108BBA334F5A019CB3FC0EFC0E7C'
$file = Join-Path $env:TEMP 'dotnet-runtime-8.0.34-win-x86.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet' -Wait