Commands for installing dfetch 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 DFetch-org.DFetch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DFetch-org.DFetch -e --silentwinget uninstall --id DFetch-org.DFetch -e --silentBy installer
32-bit · MSI · All users · und
Silent install
msiexec /i dfetch-0.14.4-win.msi /qn /norestartWrite a log
msiexec /i dfetch-0.14.4-win.msi /qn /norestart /l*v "%TEMP%\dfetch-install.log"Uninstall
msiexec /x {90F074A9-D2A7-42D2-BBFF-E0767AB01CFD} /qn /norestart- MSI product code
- {90F074A9-D2A7-42D2-BBFF-E0767AB01CFD}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{90F074A9-D2A7-42D2-BBFF-E0767AB01CFD}
- UpgradeCode
- {BDC7DA0D-70C1-4189-BE88-F1BD2DEE3E33}
- Install folder
- %ProgramFiles(x86)%/dfetch
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-dfetch.ps1
$url = 'https://github.com/dfetch-org/dfetch/releases/download/0.14.4/dfetch-0.14.4-win.msi'
$sha256 = '50DE7D2E81FDA4F997C1640A99B588AD24B8C96E7232CD7E291B6779313C712C'
$file = Join-Path $env:TEMP 'dfetch-0.14.4-win.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait