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