Kommandon för att installera Friction utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare · en-US
Tyst installation
friction-0.9.6.1-setup-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
friction-0.9.6.1-setup-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\friction"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{12D25577-88FD-4C5A-AF69-CCA597CAC44E}_is1
- Installationsmapp
- %ProgramFiles%\Friction
64-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
friction-0.9.6.1-setup-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
friction-0.9.6.1-setup-win64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\friction"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{12D25577-88FD-4C5A-AF69-CCA597CAC44E}_is1
- Installationsmapp
- %ProgramFiles%\Friction
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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