أوامر لتثبيت برنامج WinDbg دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو 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