Ad Widget

Collapse

msiexec install always fails when trying to specify PSK config

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • apecity
    Junior Member
    • Sep 2021
    • 1

    #1

    msiexec install always fails when trying to specify PSK config

    I have been unable to write a successful command line to install zabbix from the msi file when I try to specify the PSK config.

    If I take out the PSK lines (the last 4) it works fine, no issues.

    But if I add the PSK config lines, I get:
    Code:
    MSI (s) (78:8C) [07:09:14:091]: Product: Zabbix Agent 2 (64-bit) -- PSK value field is not set
    Here is my installation command.
    Code:
    msiexec /i zabbix_agent2.msi /l*v log.txt /qn^
     SERVER=%ZABBIXSERVER%^
     HOSTNAME=%FQDN%^
     SERVERACTIVE=%ZABBIXSERVER%^
     ENABLEPATH=1^
     INSTALLFOLDER="%INSTALLFOLDER%"^
     LOGTYPE=file^
     LOGFILE="%INSTALLFOLDER%\zabbix.log"^
     TLSPSKFILE="%INSTALLFOLDER%\psk.key"^
     TLSConnect=psk^
     TLSAccept=psk^
     TLSPSKIdentity=ACME-PSK-ID
    I believe my cfg lines above are correct because when I manually install zabbix from the GUI, those are the cfg lines it generates.

    I tried creating the install dir and psk file first, before this, thinking it maybe needed to find the file in place first. That didn't help.

    Anyone else run into this? How did you solve it?
  • Liquidkristal
    Junior Member
    • Nov 2020
    • 4

    #2
    hopefully this is helpful, I use the following for installing zabbix agent (its powershell, but should make sense)


    Code:
    "/qn /norestart /l*v `"MsiInstall.log`" ENABLEREMOTECOMMANDS=0 SERVER=$($Server)  SERVERACTIVE=$($Server) HOSTNAME=$($env:COMPUTERNAME) TLSCONNECT=psk TLSACCEPT=psk TLSPSKIDENTITY=$($PSKIdentity) TLSPSKVALUE=$($PSKValue) ENABLEPATH=1"
    Values: $PSKValue and $PSKIdentity are just text strings, no additional files.

    Comment

    Working...