Kommandon för att installera remove.bg utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
32-bitars · EXE
Tyst installation
removebg-for-windows-2.2.4.exe noPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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