Ordres per instal·lar HashHash 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 RussellBanks.HashHash -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RussellBanks.HashHash -e --silentwinget uninstall --id RussellBanks.HashHash -e --silentPer instal·lador
64 bits · EXE (WiX Burn) · Tots els usuaris
Instal·lació silenciosa
HashHash-1.12.0.exe /quiet /norestart64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i HashHash-1.12.0.msi /qn /norestartDesar un registre
msiexec /i HashHash-1.12.0.msi /qn /norestart /l*v "%TEMP%\hashhash-install.log"Desinstal·lar
msiexec /x {E08C7511-E56F-34F3-8C89-B5530C99076C} /qn /norestart- Codi de producte MSI
- {E08C7511-E56F-34F3-8C89-B5530C99076C}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E08C7511-E56F-34F3-8C89-B5530C99076C}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-hashhash.ps1
$url = 'https://github.com/russellbanks/HashHash/releases/download/v1.12.0/HashHash-1.12.0.exe'
$sha256 = 'DC4802461F6E9C14CD6332357955B388A6EADF84353D319AE69591583511EFE4'
$file = Join-Path $env:TEMP 'HashHash-1.12.0.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 '/quiet /norestart' -Wait install-hashhash.ps1
$url = 'https://github.com/russellbanks/HashHash/releases/download/v1.12.0/HashHash-1.12.0.msi'
$sha256 = '191A165A587393C19AF47F397C43622E93245C1D1BDA558C0FA411FFB2AEEA20'
$file = Join-Path $env:TEMP 'HashHash-1.12.0.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