Ordres per instal·lar HIN Client 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 HealthInfoNet.HINClient -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id HealthInfoNet.HINClient -e --silentwinget uninstall --id HealthInfoNet.HINClient -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
HINClient_4.0.3-0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
HINClient_4.0.3-0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\hin-client"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BDFA14C6-3C06-4FD8-A43F-D6A063035D27}_is1
- DisplayVersion
- 4.0.3-0
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-hin-client.ps1
$url = 'https://cdn.hin.ch/hinclient/distribution/win32/HINClient_4.0.3-0.exe'
$sha256 = '50542EA049E9B1676AE4DDB95DDF3A0BAE0805791F1A5D35BC781E970869CA8D'
$file = Join-Path $env:TEMP 'HINClient_4.0.3-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait