To install an agent from the Agent Builder, you use the option to Create a Solution Installer Image
There is also a silent installation option. A silent.txt, is included with the final package - configure this silent file with all the connection details required. If you require additional template options - I will cover that later.
Run the appropriate installer for the operating system with the -silent option.
setupwin32.exe -silent -options response_file