HyperChatを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id BigSweetPotatoStudio.HyperChat -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BigSweetPotatoStudio.HyperChat -e --silentwinget uninstall --id BigSweetPotatoStudio.HyperChat -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
HyperChat-1.8.4-win-x64.exe /Sインストール先を指定
HyperChat-1.8.4-win-x64.exe /S /D=C:\Apps\hyperchat- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\9014033f-f8f9-5a96-9d4d-94dba10a5423
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-hyperchat.ps1
$url = 'https://github.com/BigSweetPotatoStudio/HyperChat/releases/download/v1.8.4/HyperChat-1.8.4-win-x64.exe'
$sha256 = 'F87F698FCCDD72B31CA7DD0EDE07B578A3118BB72482FAD250852AE855DE641F'
$file = Join-Path $env:TEMP 'HyperChat-1.8.4-win-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 '/S' -Wait