Installing Elastic Agent MSI with INSTALLARGS option does not work

Hello,
I have a problem installing Elastic Agent with MSI package. When i specify INSTALLARGS="--url=<URL> --enrollment-token=<TOKEN> the installation ends with an error and the agent is not installed.

So i tried to run the installation without the INSTALLARGS option and it works but then i have to enroll the agent manually which is a problem because that was the purpose of the INSTALLARGS option…

Information :

  • Stack Elastic : 8.15.0
  • Package Elastic Agent MSI : 8.15.0

To reproduce:

  • Download the Elastic Agent MSI package
  • Run : elastic-agent-8.15.0-windows-x86_64.msi INSTALLARGS="--url=<URL> --enrollment-token=<TOKEN>" --> ERROR
  • If we run : elastic-agent-<VERSION>-windows-x86_64.msi --> No error but the agent did not enroll

EA-MSI_ErrorSetup