أوامر لتثبيت برنامج Dependency Agent دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Microsoft.DependencyAgent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DependencyAgent -e --silentwinget uninstall --id Microsoft.DependencyAgent -e --silentحسب المثبّت
64 بت · EXE (NSIS) · جميع المستخدمين
التثبيت الصامت
InstallDependencyAgent-Windows.exe /S /RebootMode=manualمجلد مخصص
InstallDependencyAgent-Windows.exe /S /RebootMode=manual /D=C:\Apps\dependency-agent- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DependencyAgent
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-dependency-agent.ps1
$url = 'https://da-release-ehacb6gnczcma8hc.b01.azurefd.net/public/InstallDependencyAgent-Windows.exe'
$sha256 = 'D07B4FDFDF515589E32B7A68519D92D05D8A6F3AA2D7AEA0D27280C9CB51B22D'
$file = Join-Path $env:TEMP 'InstallDependencyAgent-Windows.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 '/S /RebootMode=manual' -Wait