أوامر لتثبيت برنامج Lightshot دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Skillbrains.Lightshot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Skillbrains.Lightshot -e --silentwinget uninstall --id Skillbrains.Lightshot -e --silentحسب المثبّت
32 بت · EXE (Inno Setup) · جميع المستخدمين
التثبيت الصامت
setup-lightshot-5.5.0.7.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-مجلد مخصص
setup-lightshot-5.5.0.7.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\lightshot"- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{30A5B3C9-2084-4063-A32A-628A98DE512B}_is1
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-lightshot.ps1
$url = 'https://updater.prntscr.com/builds/setup-lightshot-5.5.0.7.exe'
$sha256 = '928C2808421DFD487FFA697379548CBE682C0E13AEB595EB89973BA9C515B8A1'
$file = Join-Path $env:TEMP 'setup-lightshot-5.5.0.7.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait