Microsoft .NET Runtime 10.0を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Microsoft.DotNet.Runtime.10 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DotNet.Runtime.10 -e --silentwinget uninstall --id Microsoft.DotNet.Runtime.10 -e --silentインストーラー別
64ビット · EXE(WiX Burn) · すべてのユーザー
サイレントインストール
dotnet-runtime-10.0.15-win-x64.exe /quietアンインストール
msiexec /x {E3860B64-C6F7-43B8-8809-CEE4AE78D57D} /qn /norestart- MSIプロダクトコード
- {E3860B64-C6F7-43B8-8809-CEE4AE78D57D}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E3860B64-C6F7-43B8-8809-CEE4AE78D57D}
- DisplayVersion
- 10.0.15.36629
ARM64 · EXE(WiX Burn) · すべてのユーザー
サイレントインストール
dotnet-runtime-10.0.15-win-arm64.exe /quietアンインストール
msiexec /x {C13E2ABB-87BC-477B-BD93-8154EC16CBCD} /qn /norestart- MSIプロダクトコード
- {C13E2ABB-87BC-477B-BD93-8154EC16CBCD}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C13E2ABB-87BC-477B-BD93-8154EC16CBCD}
- DisplayVersion
- 10.0.15.36629
32ビット · EXE(WiX Burn) · すべてのユーザー
サイレントインストール
dotnet-runtime-10.0.15-win-x86.exe /quietアンインストール
msiexec /x {585A5444-3F97-4E70-A4B7-F073BEB6A176} /qn /norestart- MSIプロダクトコード
- {585A5444-3F97-4E70-A4B7-F073BEB6A176}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{585A5444-3F97-4E70-A4B7-F073BEB6A176}
- DisplayVersion
- 10.0.15.36629
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-microsoft-net-runtime-10-0.ps1
$url = 'https://download.microsoft.com/download/ffd45c1d-8bfb-4336-b17b-9b4d099046f1/820034e4-4b5b-422a-80a6-8b3ffafbf58d/dotnet-runtime-10.0.15-win-x64.exe'
$sha256 = '59B0DA003D18B76E8DCC0DC05BF7E54A0E6E83E7C569D57E1EE5C270664BB128'
$file = Join-Path $env:TEMP 'dotnet-runtime-10.0.15-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-10-0.ps1
$url = 'https://download.microsoft.com/download/ffd45c1d-8bfb-4336-b17b-9b4d099046f1/d5ce6fd1-95d5-4acd-adbb-406812706e50/dotnet-runtime-10.0.15-win-arm64.exe'
$sha256 = '07398DE5CC8EA84791B71C4EE80114E1F8A79B9A19AE1E63D60B2950FF8C4009'
$file = Join-Path $env:TEMP 'dotnet-runtime-10.0.15-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-10-0.ps1
$url = 'https://download.microsoft.com/download/ffd45c1d-8bfb-4336-b17b-9b4d099046f1/bb62b9e4-3216-47a6-94d3-b62d680f53b2/dotnet-runtime-10.0.15-win-x86.exe'
$sha256 = '781E1D683D205F9016720BED788BE8DF2EA6C6DBEABCFE744713AE3421F98B17'
$file = Join-Path $env:TEMP 'dotnet-runtime-10.0.15-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