Modify the installer to make the Agent using HTTP Proxy

If you use the default agent installer, agent will never connect to the ESMC Server because of missing proxy settings. You need to edit the Live installer script to include the proxy hostname and the port.

1.Open the ESMCAgentInstaller.bat script in a text editor.
 

2.Find the following section (around the line 95):

 

echo.Dim params: params = "/qr /i """ ^& packageLocation ^& """ /l*v ""%temp%\ra-agent-install.log""" ^&_

echo.                     " ALLUSERS=1 REBOOT=ReallySuppress" ^&_

echo.                     " P_CONNECTION_CHOSEN=Host" ^&_

echo.                     " P_HOSTNAME=""!server_hostname!""" ^&_

echo.                     " P_PORT=""!server_port!""" ^&_

echo.                     " P_CERT_PATH=""!peer_cert_path!""" ^&_

echo.                     " P_CERT_PASSWORD=""!peer_cert_pwd!""" ^&_

echo.                     " P_CERT_PASSWORD_IS_BASE64=YES" ^&_

echo.                     " P_INITIAL_STATIC_GROUP=""!initial_sg_token!""" ^&_

echo.                     " P_ENABLE_TELEMETRY=""!enable_telemetry!""" ^&_

echo.                     " P_LOAD_CERTS_FROM_FILE_AS_BASE64=YES"

3.Change the code by adding highlighted section and substituting the EXAMPLE.PROXY with your actual proxy hostname or IP address of the machine where the HTTP Proxy is installed.

 

echo.Dim params: params = "/qr /i """ ^& packageLocation ^& """ /l*v ""%temp%\ra-agent-install.log""" ^&_

echo.                     " ALLUSERS=1 REBOOT=ReallySuppress" ^&_

echo.                     " P_CONNECTION_CHOSEN=Host" ^&_

echo.                     " P_HOSTNAME=""!server_hostname!""" ^&_

echo.                     " P_PORT=""!server_port!""" ^&_

echo.                     " P_CERT_PATH=""!peer_cert_path!""" ^&_

echo.                     " P_CERT_PASSWORD=""!peer_cert_pwd!""" ^&_

echo.                     " P_CERT_PASSWORD_IS_BASE64=YES" ^&_

echo.                     " P_INITIAL_STATIC_GROUP=""!initial_sg_token!""" ^&_

echo.                     " P_ENABLE_TELEMETRY=""!enable_telemetry!""" ^&_

echo.                     " P_LOAD_CERTS_FROM_FILE_AS_BASE64=YES"  ^&_

echo.                     " P_USE_PROXY=1" ^&_

echo.                     " P_PROXY_HTTP_HOSTNAME=EXAMPLE.PROXY" ^&_

echo.                     " P_PROXY_HTTP_PORT=3128"

4.Save the file.
 

5.Now you can use this installer to install the ESET Management Agent, locally or remotely, to a client machine.