Ordres per instal·lar WinDbg sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path windbg.msixbundleDesinstal·lar
Get-AppxPackage -Name Microsoft.WinDbg | Remove-AppxPackageARM64 · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path windbg.msixbundleDesinstal·lar
Get-AppxPackage -Name Microsoft.WinDbg | Remove-AppxPackage32 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path windbg.msixbundleDesinstal·lar
Get-AppxPackage -Name Microsoft.WinDbg | Remove-AppxPackagePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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