WezTermを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id wez.wezterm -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id wez.wezterm -e --silentwinget uninstall --id wez.wezterm -e --silentインストーラー別
64ビット · EXE(Inno Setup)
サイレントインストール
WezTerm-20240203-110809-5046fc22-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
WezTerm-20240203-110809-5046fc22-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\wezterm"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BCF6F0DA-5B9A-408D-8562-F680AE6E1EAF}_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-wezterm.ps1
$url = 'https://github.com/wez/wezterm/releases/download/20240203-110809-5046fc22/WezTerm-20240203-110809-5046fc22-setup.exe'
$sha256 = '35A6EC0EFF7AA65E3987F14223BFB9DF831EAAB2964EB441ED6CAD4356D252FF'
$file = Join-Path $env:TEMP 'WezTerm-20240203-110809-5046fc22-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait