Ordres per instal·lar filer 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 no010.filer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id no010.filer -e --silentwinget uninstall --id no010.filer -e --silentPer instal·lador
64 bits · EXE (NSIS)
Instal·lació silenciosa
filer_0.1.5_x64-setup.exe /SUna altra carpeta
filer_0.1.5_x64-setup.exe /S /D=C:\Apps\filerPowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-filer.ps1
$url = 'https://github.com/no010/filer-app/releases/download/v0.1.5/filer_0.1.5_x64-setup.exe'
$sha256 = '56A3F54A8BE0B683C39AB596700318A89BBF9067C8D775A0A8A8E5630E18BFCD'
$file = Join-Path $env:TEMP 'filer_0.1.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