أوامر لتثبيت برنامج Dangerzone دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id FreedomofthePressFoundation.Dangerzone -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id FreedomofthePressFoundation.Dangerzone -e --silentwinget uninstall --id FreedomofthePressFoundation.Dangerzone -e --silentحسب المثبّت
64 بت · MSI · جميع المستخدمين
التثبيت الصامت
msiexec /i Dangerzone-0.11.1.msi /qn /norestartكتابة ملف سجل
msiexec /i Dangerzone-0.11.1.msi /qn /norestart /l*v "%TEMP%\dangerzone-install.log"إلغاء التثبيت
msiexec /x {B2802F73-9FFE-4281-95BE-9E3F364E378B} /qn /norestart- رمز منتج MSI
- {B2802F73-9FFE-4281-95BE-9E3F364E378B}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B2802F73-9FFE-4281-95BE-9E3F364E378B}
- UpgradeCode
- {12B9695C-965B-4BE0-BC33-21274E809576}
- مجلد التثبيت
- %ProgramFiles%/Dangerzone
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-dangerzone.ps1
$url = 'https://github.com/freedomofpress/dangerzone/releases/download/v0.11.1/Dangerzone-0.11.1.msi'
$sha256 = 'D3CD0DC6173CB184C2A7FE32C5EBDCE93FB8F7F1D3F028ED3AF836C9C73C3594'
$file = Join-Path $env:TEMP 'Dangerzone-0.11.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