أوامر لتثبيت برنامج MTPuTTY دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id TTYPlus.MTPuTTY -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TTYPlus.MTPuTTY -e --silentwinget uninstall --id TTYPlus.MTPuTTY -e --silentحسب المثبّت
32 بت · EXE (Inno Setup) · المستخدم الحالي
التثبيت الصامت
mtputty_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-مجلد مخصص
mtputty_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\mtputty"- مفتاح إلغاء التثبيت في السجل
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\MTPuTTY_is1
32 بت · EXE (Inno Setup) · جميع المستخدمين
التثبيت الصامت
mtputty_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-مجلد مخصص
mtputty_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\mtputty"- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\MTPuTTY_is1
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-mtputty.ps1
$url = 'https://ttyplus.com/download/mtputty_setup.exe'
$sha256 = 'C5B9AFAD75DDD8C527503AC3B4D7A97920081C254C54044DF421BD05145AE163'
$file = Join-Path $env:TEMP 'mtputty_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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-mtputty.ps1
$url = 'https://ttyplus.com/download/mtputty_setup.exe'
$sha256 = 'C5B9AFAD75DDD8C527503AC3B4D7A97920081C254C54044DF421BD05145AE163'
$file = Join-Path $env:TEMP 'mtputty_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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait