أوامر لتثبيت برنامج SnipCommand دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id gurayyarar.SnipCommand -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id gurayyarar.SnipCommand -e --silentwinget uninstall --id gurayyarar.SnipCommand -e --silentحسب المثبّت
64 بت · EXE (NSIS)
التثبيت الصامت
SnipCommand-0.1.0.exe /Sمجلد مخصص
SnipCommand-0.1.0.exe /S /D=C:\Apps\snipcommandPowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-snipcommand.ps1
$url = 'https://github.com/gurayyarar/SnipCommand/releases/download/v0.1.0/SnipCommand-0.1.0.exe'
$sha256 = '3E22617F2CA57E8AAB4A7C0D96BB3CAD1819D5132474234EF6B13DFB4B09961B'
$file = Join-Path $env:TEMP 'SnipCommand-0.1.0.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