ArmA3Syncを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id SonsofExiled.Arma3Sync -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SonsofExiled.Arma3Sync -e --silentwinget uninstall --id SonsofExiled.Arma3Sync -e --silentインストーラー別
32ビット · EXE(Inno Setup)
サイレントインストール
arma3sync-installer-1-7-107.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
arma3sync-installer-1-7-107.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\arma3sync"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-arma3sync.ps1
$url = 'http://sonsofexiled.fr/arma3sync/releases/arma3sync-installer-1-7-107.exe'
$sha256 = '01F9B758ED274FFB99A9450AD44B82F73EBF3D07416B129FEAF7A08B96B4E0C4'
$file = Join-Path $env:TEMP 'arma3sync-installer-1-7-107.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