Commands for installing Elixir 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 Elixir.Elixir -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Elixir.Elixir -e --silentwinget uninstall --id Elixir.Elixir -e --silentBy installer
64-bit · EXE (NSIS) · All users · en-US
Silent install
elixir-otp-29.exe /SCustom folder
elixir-otp-29.exe /S /D=C:\Apps\elixir- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Elixir
- Install folder
- %ProgramFiles%\Elixir
- DisplayVersion
- 1.20.4
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-elixir.ps1
$url = 'https://github.com/elixir-lang/elixir/releases/download/v1.20.4/elixir-otp-29.exe'
$sha256 = '1787870E49DBEF9DB365F04895E81D4E0D48E1DB0A99E24237C7BFAB92DDCFC5'
$file = Join-Path $env:TEMP 'elixir-otp-29.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