Commands for installing Mailspring 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 Foundry376.Mailspring -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Foundry376.Mailspring -e --silentwinget uninstall --id Foundry376.Mailspring -e --silentBy installer
64-bit · EXE · Current user
Silent install
MailspringSetup.exe --silent- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mailspring
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-mailspring.ps1
$url = 'https://github.com/Foundry376/Mailspring/releases/download/1.26.2/MailspringSetup.exe'
$sha256 = 'A1DFCBF573F05F705CE717D6B7911F2E5A7D6AAC0F7DFC0C824F3D78F44C5827'
$file = Join-Path $env:TEMP 'MailspringSetup.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 '--silent' -Wait