Bubble Betaを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id RedCactus.BubbleBeta -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RedCactus.BubbleBeta -e --silentwinget uninstall --id RedCactus.BubbleBeta -e --silentインストーラー別
64ビット · MSI · en-US
サイレントインストール
msiexec /i 494342c8-f3e9-491d-b6f2-4654c8ac8cbd /qn /norestartログを出力
msiexec /i 494342c8-f3e9-491d-b6f2-4654c8ac8cbd /qn /norestart /l*v "%TEMP%\bubble-beta-install.log"アンインストール
msiexec /x {2FBD6A3B-9174-485E-BFA0-A1E050181EA8} /qn /norestart- MSIプロダクトコード
- {2FBD6A3B-9174-485E-BFA0-A1E050181EA8}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2FBD6A3B-9174-485E-BFA0-A1E050181EA8}
- UpgradeCode
- {56FC8793-125F-40DC-8864-EC6FCADC95D4}
- インストール先フォルダー
- APPDIR:.
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-bubble-beta.ps1
$url = 'https://api.eu.redcactus.cloud/v1/public/software/download/494342c8-f3e9-491d-b6f2-4654c8ac8cbd'
$sha256 = '3CA7120BC930F3DA5876323B68E2E157859AD344FFB67F8D700AA53C9A54F23E'
$file = Join-Path $env:TEMP '494342c8-f3e9-491d-b6f2-4654c8ac8cbd'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait