openageを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id SFTtech.openage -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SFTtech.openage -e --silentwinget uninstall --id SFTtech.openage -e --silentインストーラー別
64ビット · EXE(NSIS)
サイレントインストール
openage-v0.4.0-amd64-installer.exe /Sインストール先を指定
openage-v0.4.0-amd64-installer.exe /S /D=C:\Apps\openage32ビット · EXE(NSIS)
サイレントインストール
openage-v0.4.0-x86-installer.exe /Sインストール先を指定
openage-v0.4.0-x86-installer.exe /S /D=C:\Apps\openagePowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-openage.ps1
$url = 'https://github.com/SFTtech/openage/releases/download/v0.4.0/openage-v0.4.0-amd64-installer.exe'
$sha256 = 'F0BEC28E8873DD21D1C3A5247BCA527A9681AF3CF1A83B30214309B0BB1F36BB'
$file = Join-Path $env:TEMP 'openage-v0.4.0-amd64-installer.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 install-openage.ps1
$url = 'https://github.com/SFTtech/openage/releases/download/v0.4.0/openage-v0.4.0-x86-installer.exe'
$sha256 = 'A447F1BD0EAE91306FDA78CCEA2700A293A7B5EB6045115C26816F134CAF432E'
$file = Join-Path $env:TEMP 'openage-v0.4.0-x86-installer.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