Commands for installing Electrum 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 Electrum.Electrum -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Electrum.Electrum -e --silentwinget uninstall --id Electrum.Electrum -e --silentBy installer
64-bit · EXE (NSIS)
Silent install
electrum-4.8.3-setup.exe /SCustom folder
electrum-4.8.3-setup.exe /S /D=C:\Apps\electrum- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Electrum
- Install folder
- %ProgramFiles%\Electrum
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-electrum.ps1
$url = 'https://download.electrum.org/4.8.3/electrum-4.8.3-setup.exe'
$sha256 = '6B3F3E1FFD2C11FCA31B1A23F7CB826AD6C5BC1D58F988F17602F3EE6CB9B417'
$file = Join-Path $env:TEMP 'electrum-4.8.3-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