Commands for installing onefetch without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id o2sh.onefetch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id o2sh.onefetch -e --silentwinget uninstall --id o2sh.onefetch -e --silentBy installer
32-bit · EXE (Inno Setup) · All users · en-US
Silent install
onefetch-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
onefetch-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\onefetch"- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{BB44DE71-B34D-4707-AE9D-5FF3FA632283}_is1
- Install folder
- %ProgramFiles%\onefetch
- DisplayVersion
- 3.1.0
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-onefetch.ps1
$url = 'https://github.com/o2sh/onefetch/releases/download/3.1.0/onefetch-setup.exe'
$sha256 = 'FDEB44130F1E4CA802D47D7AF005A5E0B3DDE02B05998F7D49E8C45C3A9D41F0'
$file = Join-Path $env:TEMP 'onefetch-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