Bubbleを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id RedCactus.Bubble -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RedCactus.Bubble -e --silentwinget uninstall --id RedCactus.Bubble -e --silentインストーラー別
64ビット · MSI · en-US
サイレントインストール
msiexec /i windows_x64 /qn /norestartログを出力
msiexec /i windows_x64 /qn /norestart /l*v "%TEMP%\bubble-install.log"アンインストール
msiexec /x {20062895-E4DA-435F-9F25-3CBC4615ED97} /qn /norestart- MSIプロダクトコード
- {20062895-E4DA-435F-9F25-3CBC4615ED97}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{20062895-E4DA-435F-9F25-3CBC4615ED97}
- UpgradeCode
- {56FC8793-125F-40DC-8864-EC6FCADC95D4}
- インストール先フォルダー
- APPDIR:.
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-bubble.ps1
$url = 'https://api.eu.redcactus.cloud/v1/public/software/download/latest/ff582a83-5f70-4629-aec8-4ed498dcc1b8/bubble/windows_x64'
$sha256 = 'EDC9D0A7D853E6163CD91B0722C6F235118A5785117F60A45B3EC69D3D7DA357'
$file = Join-Path $env:TEMP 'windows_x64'
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