VDA 7.7 Update > Port between 0 and 65535

We encountered a surprising error message while upgrading VDA from XenApp 7.6 to XenApp 7.7 : “The port number must be between 0 and 65535”
error

 

After reading installation log file, we found that the port is guessed with AgentConfig.exe, So we run it manually

"c:\Program Files`\Citrix\Virtual Desktop Agent\Agent Configuration\AgentConfig.exe" /ExecutionMode:DumpConfiguration /Log:c:\temp\agent.log"

It seems that the AgentConfig is unable to find the PortNumber in the Registry
conf_KO

 

Hopefully, we can force the configuration of the agent

"c:\Program Files`\Citrix\Virtual Desktop Agent\Agent Configuration\AgentConfig.exe" /ExecutionMode:Configure /Log:c:\temp\agent.log"

After that, All goes better

conf_ok

 

And the upgrade process goes well
working