Kommandoer til at installere BinaryFetch uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
Med 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 --silentPr. installationsfil
64-bit · EXE (Inno Setup)
Lydløs installation
BinaryFetch-v1.5-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
BinaryFetch-v1.5-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\binaryfetch"PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
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