Ordres per instal·lar Fly sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id TheServer-lab.Fly -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TheServer-lab.Fly -e --silentwinget uninstall --id TheServer-lab.Fly -e --silentPer instal·lador
64 bits · EXE (NSIS)
Instal·lació silenciosa
fly-installer-0.1.4.exe /SUna altra carpeta
fly-installer-0.1.4.exe /S /D=C:\Apps\flyPowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-fly.ps1
$url = 'https://github.com/TheServer-lab/fly/releases/download/v0.1.4/fly-installer-0.1.4.exe'
$sha256 = '6A7A7C94B96701D948FFFD4AB549901664960B82BE476F8C13528D74C99B45FC'
$file = Join-Path $env:TEMP 'fly-installer-0.1.4.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