Ordres per instal·lar HexChat 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 HexChat.HexChat -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id HexChat.HexChat -e --silentwinget uninstall --id HexChat.HexChat -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
HexChat.2.16.2.x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
HexChat.2.16.2.x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\hexchat"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HexChat_is1
32 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
HexChat.2.16.2.x86.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
HexChat.2.16.2.x86.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\hexchat"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\HexChat_is1
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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