Commands for installing rexenv 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 rexenv.rexenv -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id rexenv.rexenv -e --silentwinget uninstall --id rexenv.rexenv -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
rexenv_0.9.5_x64-setup.exe /SCustom folder
rexenv_0.9.5_x64-setup.exe /S /D=C:\Apps\rexenv- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\rexenv
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-rexenv.ps1
$url = 'https://github.com/rexenv/rexenv/releases/download/v0.9.5/rexenv_0.9.5_x64-setup.exe'
$sha256 = '83D88ACAF6DE9A194EC180D11C5F067A3E81A0B130A3668B55EE2238A9E47DC4'
$file = Join-Path $env:TEMP 'rexenv_0.9.5_x64-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