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