Emulationstationを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
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 --silentインストーラー別
32ビット · EXE(NSIS) · すべてのユーザー · en-US
サイレントインストール
emulationstation_2.0.1_win32.exe /Sインストール先を指定
emulationstation_2.0.1_win32.exe /S /D=C:\Apps\emulationstationPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
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