أوامر لتثبيت برنامج OpenDsc Server دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id OpenDsc.Server -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenDsc.Server -e --silentwinget uninstall --id OpenDsc.Server -e --silentحسب المثبّت
64 بت · MSI
التثبيت الصامت
msiexec /i OpenDSC.Server-0.5.1.msi /qn /norestartكتابة ملف سجل
msiexec /i OpenDSC.Server-0.5.1.msi /qn /norestart /l*v "%TEMP%\opendsc-server-install.log"إلغاء التثبيت
msiexec /x {ADAF2413-76CA-41FE-8B25-D80D1744B82F} /qn /norestart- رمز منتج MSI
- {ADAF2413-76CA-41FE-8B25-D80D1744B82F}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ADAF2413-76CA-41FE-8B25-D80D1744B82F}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-opendsc-server.ps1
$url = 'https://github.com/opendsc/opendsc/releases/download/v0.5.1/OpenDSC.Server-0.5.1.msi'
$sha256 = 'DD7F1992CB6FB9E3A0E4AA1663DCB26D41208F24F9BB45085EC6A9B280AA984F'
$file = Join-Path $env:TEMP 'OpenDSC.Server-0.5.1.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