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