remove.bgを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id RemoveBG.RemoveBG -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RemoveBG.RemoveBG -e --silentwinget uninstall --id RemoveBG.RemoveBG -e --silentインストーラー別
32ビット · EXE
サイレントインストール
removebg-for-windows-2.2.4.exe noPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-remove-bg.ps1
$url = 'https://storage.googleapis.com/removebg-static/download/removebg-for-windows-2.2.4.exe'
$sha256 = '114A7DA004F5C87D43BC2123F4611AA8A4A97F7B58533AF08DC52C3088928C1E'
$file = Join-Path $env:TEMP 'removebg-for-windows-2.2.4.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 'no' -Wait