Commands for installing TypeRefHasher 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 GDATA.TypeRefHasher -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GDATA.TypeRefHasher -e --silentwinget uninstall --id GDATA.TypeRefHasher -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i trh.msi /qn /norestartWrite a log
msiexec /i trh.msi /qn /norestart /l*v "%TEMP%\typerefhasher-install.log"Uninstall
msiexec /x {DFC3934C-F12F-4E4A-8915-4C9DAA2FE242} /qn /norestart- MSI product code
- {DFC3934C-F12F-4E4A-8915-4C9DAA2FE242}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DFC3934C-F12F-4E4A-8915-4C9DAA2FE242}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
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