Commands for installing Element 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 Element.Element -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Element.Element -e --silentwinget uninstall --id Element.Element -e --silentBy installer
64-bit · EXE · Current user
Silent install
"Element Setup 1.12.32.exe" --silent- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\element-desktop
ARM64 · EXE · Current user
Silent install
"Element Setup 1.12.32.exe" --silent- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\element-desktop
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-element.ps1
$url = 'https://packages.element.io/desktop/install/win32/x64/Element%20Setup%201.12.32.exe'
$sha256 = '633A783365293916580FE8A589F3B0C8CAD9E2311F45F65E2F527AA6DDA72D5A'
$file = Join-Path $env:TEMP 'Element Setup 1.12.32.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 install-element.ps1
$url = 'https://packages.element.io/desktop/install/win32/arm64/Element%20Setup%201.12.32.exe'
$sha256 = 'A4CC0403BB291414428F05B46589AE5D8095055F34C31382B0541448370FCEFE'
$file = Join-Path $env:TEMP 'Element Setup 1.12.32.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