Commands for installing BleachBit without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id BleachBit.BleachBit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BleachBit.BleachBit -e --silentwinget uninstall --id BleachBit.BleachBit -e --silentBy installer
32-bit · EXE (NSIS) · Current user
Silent install
BleachBit-6.0.6-setup.exe /SCustom folder
BleachBit-6.0.6-setup.exe /S /D=C:\Apps\bleachbit- Uninstall registry key
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\BleachBit
32-bit · EXE (NSIS) · All users
Silent install
BleachBit-6.0.6-setup.exe /SCustom folder
BleachBit-6.0.6-setup.exe /S /D=C:\Apps\bleachbit- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\BleachBit
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-bleachbit.ps1
$url = 'https://download.bleachbit.org/BleachBit-6.0.6-setup.exe'
$sha256 = 'A8D27535CDC53E89C21090EABCA6026D32C4D385863F8DFC6FC8814BDA7881C4'
$file = Join-Path $env:TEMP 'BleachBit-6.0.6-setup.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 '/S' -Wait install-bleachbit.ps1
$url = 'https://download.bleachbit.org/BleachBit-6.0.6-setup.exe'
$sha256 = 'A8D27535CDC53E89C21090EABCA6026D32C4D385863F8DFC6FC8814BDA7881C4'
$file = Join-Path $env:TEMP 'BleachBit-6.0.6-setup.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 '/S' -Wait