Ordres per instal·lar dfetch 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 DFetch-org.DFetch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DFetch-org.DFetch -e --silentwinget uninstall --id DFetch-org.DFetch -e --silentPer instal·lador
32 bits · MSI · Tots els usuaris · und
Instal·lació silenciosa
msiexec /i dfetch-0.14.4-win.msi /qn /norestartDesar un registre
msiexec /i dfetch-0.14.4-win.msi /qn /norestart /l*v "%TEMP%\dfetch-install.log"Desinstal·lar
msiexec /x {90F074A9-D2A7-42D2-BBFF-E0767AB01CFD} /qn /norestart- Codi de producte MSI
- {90F074A9-D2A7-42D2-BBFF-E0767AB01CFD}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{90F074A9-D2A7-42D2-BBFF-E0767AB01CFD}
- UpgradeCode
- {BDC7DA0D-70C1-4189-BE88-F1BD2DEE3E33}
- Carpeta d’instal·lació
- %ProgramFiles(x86)%/dfetch
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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