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