Kommandon för att installera Emulationstation 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 Emulationstation.Emulationstation -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Emulationstation.Emulationstation -e --silentwinget uninstall --id Emulationstation.Emulationstation -e --silentPer installationsfil
32-bitars · EXE (NSIS) · Alla användare · en-US
Tyst installation
emulationstation_2.0.1_win32.exe /SEgen mapp
emulationstation_2.0.1_win32.exe /S /D=C:\Apps\emulationstationPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-emulationstation.ps1
$url = 'https://emulationstation.org/downloads/releases/2.0.1/emulationstation_2.0.1_win32.exe'
$sha256 = '70CCE8A059750A81A3F5E83CE818E889670BE7B162CD79C0B5F55A893BD7FEA5'
$file = Join-Path $env:TEMP 'emulationstation_2.0.1_win32.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 '/S' -Wait