I’m trying to itergrate elastic agent to the chain of my installer:
<ExePackage SourceFile="$(var.ThirdParty)InstallerEAelastic-agent.exe" InstallCommand="install" />
Above setup will run but the elastic-agent.exe will ask for some confirm like:
Elastic Agent will be installed at C:Program FilesElasticAgent and will run as a service. Do you want to continue? [Y/n]:
So that I want to emit these questions, I tested with command like:
.elastic-agent.exe install -f
I see that it works:elastic-agent.exe install -f
[=== ] Service Started [11s] Elastic Agent successfully installed, starting enrollment.
[=== ] Done [11s]
Elastic Agent has been successfully installed.
But when I try to pass the flg ‘-f’ to InstallCommand, it doesn’t work as expected
<ExePackage SourceFile="$(var.ThirdParty)InstallerEAelastic-agent.exe" InstallCommand="install -f" />
I get this error:
[5134:3824][2024-07-24T09:59:24]e000: Error 0x80070001: Process returned error: 0x1
[5134:3824][2024-07-24T09:59:24]e000: Error 0x80070001: Failed to execute EXE package.
[20F4:5A58][2024-07-24T09:59:24]e000: Error 0x80070001: Failed to configure per-machine EXE package.