Commands for installing Backrest 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 garethgeorge.Backrest -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id garethgeorge.Backrest -e --silentwinget uninstall --id garethgeorge.Backrest -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user · en-US
Silent install
BackrestSetup-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
BackrestSetup-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\backrest"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Backrest_is1
- Install folder
- %LocalAppData%\Programs\Backrest
64-bit · EXE (Inno Setup) · All users · en-US
Silent install
BackrestSetup-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
BackrestSetup-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\backrest"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Backrest_is1
- Install folder
- %ProgramFiles%\Backrest
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-backrest.ps1
$url = 'https://github.com/garethgeorge/backrest/releases/download/v1.14.1/BackrestSetup-x86_64.exe'
$sha256 = 'C8E6669546BDA08B06F6A6EE6803544975B33413BC0B268BEB9E6263C778CC50'
$file = Join-Path $env:TEMP 'BackrestSetup-x86_64.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-backrest.ps1
$url = 'https://github.com/garethgeorge/backrest/releases/download/v1.14.1/BackrestSetup-x86_64.exe'
$sha256 = 'C8E6669546BDA08B06F6A6EE6803544975B33413BC0B268BEB9E6263C778CC50'
$file = Join-Path $env:TEMP 'BackrestSetup-x86_64.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait