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