Commands for installing Keybase 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 Keybase.Keybase -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Keybase.Keybase -e --silentwinget uninstall --id Keybase.Keybase -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i keybase_setup_amd64.msi /qn /norestartWrite a log
msiexec /i keybase_setup_amd64.msi /qn /norestart /l*v "%TEMP%\keybase-install.log"Uninstall
msiexec /x {B61126FC-210F-4CCF-BDA4-32A7D885A4D6} /qn /norestart- MSI product code
- {B61126FC-210F-4CCF-BDA4-32A7D885A4D6}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B61126FC-210F-4CCF-BDA4-32A7D885A4D6}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-keybase.ps1
$url = 'https://prerelease.keybase.io/keybase_setup_amd64.msi'
$sha256 = '268FA325FA12A2C1F94BA984DE63EC1C0BFFEE9A55AFA0E7D1448F7FB3628433'
$file = Join-Path $env:TEMP 'keybase_setup_amd64.msi'
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