Kommandon för att installera FlyEnv utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
FlyEnv-Setup-4.20.2.exe /SEgen mapp
FlyEnv-Setup-4.20.2.exe /S /D=C:\Apps\flyenv- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\58e103f9-7c07-5ccc-9a52-ce8faf14c36b
64-bitars · EXE (NSIS) · Alla användare
Tyst installation
FlyEnv-Setup-4.20.2.exe /SEgen mapp
FlyEnv-Setup-4.20.2.exe /S /D=C:\Apps\flyenv- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\58e103f9-7c07-5ccc-9a52-ce8faf14c36b
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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