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