أوامر لتثبيت برنامج Second Desk دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Ryanisgood.SecondDesk -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Ryanisgood.SecondDesk -e --silentwinget uninstall --id Ryanisgood.SecondDesk -e --silentحسب المثبّت
64 بت · EXE (NSIS) · المستخدم الحالي
التثبيت الصامت
SecondDesk-v1.3.3-Windows-Setup.exe /Sمجلد مخصص
SecondDesk-v1.3.3-Windows-Setup.exe /S /D=C:\Apps\second-desk- مفتاح إلغاء التثبيت في السجل
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Second Desk
64 بت · MSI · جميع المستخدمين
التثبيت الصامت
msiexec /i SecondDesk-v1.3.3-Windows.msi /qn /norestartكتابة ملف سجل
msiexec /i SecondDesk-v1.3.3-Windows.msi /qn /norestart /l*v "%TEMP%\second-desk-install.log"إلغاء التثبيت
msiexec /x {680A4F7E-4A5B-4AB1-9A3B-90869CE1D150} /qn /norestart- رمز منتج MSI
- {680A4F7E-4A5B-4AB1-9A3B-90869CE1D150}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{680A4F7E-4A5B-4AB1-9A3B-90869CE1D150}
- UpgradeCode
- {1F4FB4E3-59D7-52F0-A521-9B5EE2A36837}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-second-desk.ps1
$url = 'https://github.com/Ryanisgood/SecondDesk/releases/download/v1.3.3/SecondDesk-v1.3.3-Windows-Setup.exe'
$sha256 = '2C1ACAE452F6332147BCD92BB4D0F209323A52AAFF37CB2E0C88BC5AF335A1AA'
$file = Join-Path $env:TEMP 'SecondDesk-v1.3.3-Windows-Setup.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' -Wait install-second-desk.ps1
$url = 'https://github.com/Ryanisgood/SecondDesk/releases/download/v1.3.3/SecondDesk-v1.3.3-Windows.msi'
$sha256 = '8187DD74042867E97513A775DE7BBB03BF72FA1CDCD40118B53865E9B53243C7'
$file = Join-Path $env:TEMP 'SecondDesk-v1.3.3-Windows.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