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