Install VDA failed on Remote PC with error: "Configuration tool AgentConfig.exe failed with error code -2".
=====VDA Installation Log=====
17:42:56.7664 : XenDesktopSetup:GetRegValue: Key Opened successfully. Software\Citrix\Citrix Virtual Desktop Agent
17:42:56.7664 : XenDesktopSetup:GetRegValue: GetValue() failed Software\Citrix\Citrix Virtual Desktop Agent ConfigToolLocation
17:42:56.7664 : XenDesktopSetup:ExecuteBrokerAgentConfigurationTool: toolLocation is C:\WINDOWS\TEMP\Ctx-xxxx\Extract\Image-Full\x64\Virtual Desktop Components\BrokerAgentConfigurationTool\AgentConfig.exe
17:42:56.7674 : XenDesktopSetup:Starting synchronous process 'C:\WINDOWS\TEMP\Ctx-xxxx\Extract\Image-Full\x64\Virtual Desktop Components\BrokerAgentConfigurationTool\AgentConfig.exe' with args '/ExecutionMode:configure /CONTROLLERS:"****'
17:43:17.5711 : XenDesktopSetup:Process completed with error code 0xFFFFFFFE
17:43:17.5711 : XenDesktopSetup:ExecuteBrokerAgentConfigurationTool: returnVal -2
17:43:17.5721 $ERR$ : XenDesktopSetup:Configuration tool AgentConfig.exe failed with error code -2
17:43:17.5770 : XenDesktopSetup:Re-configure failed
The installation is abnormal, and the Citrix registry key value is missing.