WinDbgを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Microsoft.WinDbg -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WinDbg -e --silentwinget uninstall --id Microsoft.WinDbg -e --silentインストーラー別
64ビット · MSIX
サイレントインストール
Add-AppxPackage -Path windbg.msixbundleアンインストール
Get-AppxPackage -Name Microsoft.WinDbg | Remove-AppxPackageARM64 · MSIX
サイレントインストール
Add-AppxPackage -Path windbg.msixbundleアンインストール
Get-AppxPackage -Name Microsoft.WinDbg | Remove-AppxPackage32ビット · MSIX
サイレントインストール
Add-AppxPackage -Path windbg.msixbundleアンインストール
Get-AppxPackage -Name Microsoft.WinDbg | Remove-AppxPackagePowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-windbg.ps1
$url = 'https://windbg.download.prss.microsoft.com/dbazure/prod/1-2611-4001-0/windbg.msixbundle'
$sha256 = '158F6365F365A939429977F7BC4CA3D15F8C2A39BC3ACD2B297FC36A31D69274'
$file = Join-Path $env:TEMP 'windbg.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-windbg.ps1
$url = 'https://windbg.download.prss.microsoft.com/dbazure/prod/1-2611-4001-0/windbg.msixbundle'
$sha256 = '158F6365F365A939429977F7BC4CA3D15F8C2A39BC3ACD2B297FC36A31D69274'
$file = Join-Path $env:TEMP 'windbg.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-windbg.ps1
$url = 'https://windbg.download.prss.microsoft.com/dbazure/prod/1-2611-4001-0/windbg.msixbundle'
$sha256 = '158F6365F365A939429977F7BC4CA3D15F8C2A39BC3ACD2B297FC36A31D69274'
$file = Join-Path $env:TEMP 'windbg.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file