Commands for installing FlyEnv 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 xpf0000.FlyEnv -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id xpf0000.FlyEnv -e --silentwinget uninstall --id xpf0000.FlyEnv -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
FlyEnv-Setup-4.20.2.exe /SCustom folder
FlyEnv-Setup-4.20.2.exe /S /D=C:\Apps\flyenv- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\58e103f9-7c07-5ccc-9a52-ce8faf14c36b
64-bit · EXE (NSIS) · All users
Silent install
FlyEnv-Setup-4.20.2.exe /SCustom folder
FlyEnv-Setup-4.20.2.exe /S /D=C:\Apps\flyenv- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\58e103f9-7c07-5ccc-9a52-ce8faf14c36b
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-flyenv.ps1
$url = 'https://github.com/xpf0000/FlyEnv/releases/download/v4.20.2/FlyEnv-Setup-4.20.2.exe'
$sha256 = 'FA41ED34B42A2DC4925381AB7C1299F4D72A5AE44825EC43ACB9D301AACD1707'
$file = Join-Path $env:TEMP 'FlyEnv-Setup-4.20.2.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 install-flyenv.ps1
$url = 'https://github.com/xpf0000/FlyEnv/releases/download/v4.20.2/FlyEnv-Setup-4.20.2.exe'
$sha256 = 'FA41ED34B42A2DC4925381AB7C1299F4D72A5AE44825EC43ACB9D301AACD1707'
$file = Join-Path $env:TEMP 'FlyEnv-Setup-4.20.2.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