أوامر لتثبيت برنامج DTrace دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Microsoft.DTrace -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DTrace -e --silentwinget uninstall --id Microsoft.DTrace -e --silentحسب المثبّت
64 بت · MSI · en-US
التثبيت الصامت
msiexec /i DTrace.amd64.msi /qn /norestartكتابة ملف سجل
msiexec /i DTrace.amd64.msi /qn /norestart /l*v "%TEMP%\dtrace-install.log"إلغاء التثبيت
msiexec /x {6403795B-BDDC-42F2-9DEC-A46464475C72} /qn /norestart- رمز منتج MSI
- {6403795B-BDDC-42F2-9DEC-A46464475C72}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6403795B-BDDC-42F2-9DEC-A46464475C72}
ARM64 · MSI · en-US
التثبيت الصامت
msiexec /i DTrace.arm64.msi /qn /norestartكتابة ملف سجل
msiexec /i DTrace.arm64.msi /qn /norestart /l*v "%TEMP%\dtrace-install.log"إلغاء التثبيت
msiexec /x {6403795B-BDDC-42F2-9DEC-A46464475C72} /qn /norestart- رمز منتج MSI
- {6403795B-BDDC-42F2-9DEC-A46464475C72}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6403795B-BDDC-42F2-9DEC-A46464475C72}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-dtrace.ps1
$url = 'https://download.microsoft.com/download/7/9/d/79d6b79a-5836-4118-a9b7-60bc77c97bf7/DTrace.amd64.msi'
$sha256 = '379FA23FB3D0C079A58D9989FAF4435AE3B9109032B0CF1E84695EAC445E8804'
$file = Join-Path $env:TEMP 'DTrace.amd64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-dtrace.ps1
$url = 'https://download.microsoft.com/download/7/9/d/79d6b79a-5836-4118-a9b7-60bc77c97bf7/DTrace.arm64.msi'
$sha256 = '8FDCC2717B1CF3ACA01D4B59BDD812E6461F92A452253FAD992A1F12C3737DF6'
$file = Join-Path $env:TEMP 'DTrace.arm64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait