أوامر لتثبيت برنامج Friction دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Friction.Friction -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Friction.Friction -e --silentwinget uninstall --id Friction.Friction -e --silentحسب المثبّت
64 بت · EXE (Inno Setup) · المستخدم الحالي · en-US
التثبيت الصامت
friction-0.9.6.1-setup-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-مجلد مخصص
friction-0.9.6.1-setup-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\friction"- مفتاح إلغاء التثبيت في السجل
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{12D25577-88FD-4C5A-AF69-CCA597CAC44E}_is1
- مجلد التثبيت
- %ProgramFiles%\Friction
64 بت · EXE (Inno Setup) · جميع المستخدمين · en-US
التثبيت الصامت
friction-0.9.6.1-setup-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-مجلد مخصص
friction-0.9.6.1-setup-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\friction"- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{12D25577-88FD-4C5A-AF69-CCA597CAC44E}_is1
- مجلد التثبيت
- %ProgramFiles%\Friction
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-friction.ps1
$url = 'https://github.com/friction2d/friction/releases/download/v0.9.6.1/friction-0.9.6.1-setup-win64.exe'
$sha256 = '0380CEDD44CACDFEEC9FED886EA39CBC8F5BF18C492756B0D93E7D603A065619'
$file = Join-Path $env:TEMP 'friction-0.9.6.1-setup-win64.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-friction.ps1
$url = 'https://github.com/friction2d/friction/releases/download/v0.9.6.1/friction-0.9.6.1-setup-win64.exe'
$sha256 = '0380CEDD44CACDFEEC9FED886EA39CBC8F5BF18C492756B0D93E7D603A065619'
$file = Join-Path $env:TEMP 'friction-0.9.6.1-setup-win64.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