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