Chattyを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Chatty.Chatty -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Chatty.Chatty -e --silentwinget uninstall --id Chatty.Chatty -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
Chatty_0.28_win_standalone_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Chatty_0.28_win_standalone_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\chatty"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Chatty_is1
- インストール先フォルダー
- %ProgramFiles%\Chatty
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-chatty.ps1
$url = 'https://github.com/chatty/chatty/releases/download/v0.28/Chatty_0.28_win_standalone_setup.exe'
$sha256 = '7E9181BAB7375A13D2C48F0CFCC6390F981174D64ADCF61E6D4303559ECB1245'
$file = Join-Path $env:TEMP 'Chatty_0.28_win_standalone_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