Příkazy pro instalaci programu TypeRefHasher bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes winget
PowerShell
winget install --id GDATA.TypeRefHasher -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GDATA.TypeRefHasher -e --silentwinget uninstall --id GDATA.TypeRefHasher -e --silentPodle instalátoru
64bit · MSI · Všichni uživatelé
Tichá instalace
msiexec /i trh.msi /qn /norestartZapsat protokol
msiexec /i trh.msi /qn /norestart /l*v "%TEMP%\typerefhasher-install.log"Odinstalace
msiexec /x {DFC3934C-F12F-4E4A-8915-4C9DAA2FE242} /qn /norestart- Kód produktu MSI
- {DFC3934C-F12F-4E4A-8915-4C9DAA2FE242}
- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DFC3934C-F12F-4E4A-8915-4C9DAA2FE242}
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-typerefhasher.ps1
$url = 'https://github.com/GDATASoftwareAG/TypeRefHasher/releases/download/v1.0.3/trh.msi'
$sha256 = '1CF20CA66DCDFDA4007D5B27CEABC81BA8866926E91BB943F6DCC0240810571D'
$file = Join-Path $env:TEMP 'trh.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