Commands for installing HexChat 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 HexChat.HexChat -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id HexChat.HexChat -e --silentwinget uninstall --id HexChat.HexChat -e --silentBy installer
64-bit · EXE (Inno Setup) · All users
Silent install
HexChat.2.16.2.x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
HexChat.2.16.2.x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\hexchat"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HexChat_is1
32-bit · EXE (Inno Setup) · All users
Silent install
HexChat.2.16.2.x86.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
HexChat.2.16.2.x86.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\hexchat"- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\HexChat_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-hexchat.ps1
$url = 'https://github.com/hexchat/hexchat/releases/download/v2.16.2/HexChat.2.16.2.x64.exe'
$sha256 = '39DA96A323BA98583E716A7EE5AF1A02A34935DBE3B0865B54C65CE7784E0828'
$file = Join-Path $env:TEMP 'HexChat.2.16.2.x64.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-hexchat.ps1
$url = 'https://github.com/hexchat/hexchat/releases/download/v2.16.2/HexChat.2.16.2.x86.exe'
$sha256 = '830F32073130FAAEABA22B7E4F7F8B21ECD476A1236FABB675B7DE5A8BF8C026'
$file = Join-Path $env:TEMP 'HexChat.2.16.2.x86.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait