Ordres per instal·lar BinaryFetch 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 BinaryFetch-CLI.BinaryFetch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BinaryFetch-CLI.BinaryFetch -e --silentwinget uninstall --id BinaryFetch-CLI.BinaryFetch -e --silentPer instal·lador
64 bits · EXE (Inno Setup)
Instal·lació silenciosa
BinaryFetch-v1.5-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
BinaryFetch-v1.5-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\binaryfetch"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-binaryfetch.ps1
$url = 'https://github.com/BinaryFetch-CLI/BinaryFetch/releases/download/v1.5/BinaryFetch-v1.5-Setup.exe'
$sha256 = 'EF4E93F925BD5C972FC0E307FFAA7099E3E8D01C6976C9CECAE16D7125764B12'
$file = Join-Path $env:TEMP 'BinaryFetch-v1.5-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait