To install the second instance of APMIA on the same server you will follow the steps from DX APM - SaaS:
APMIACtrl.bat install service_name "<service_name>" display_name "<display_name>"
However, using the command above is not honoring the blanks in the display_name as per the below screenshot:
This problem is related to defect DE531889. This is a mishandling of the APMIACtrl.bat installation script. The wrapper.name and wrapper.ntservice.displayname properties of the conf\wrapper.conf file do not contain the proper values after executing APMIACtrl.bat.
Windows Server 2012 & 2019
APM Infrastructure Agent 10.7 - already installed
DX APM Infrastructure Agent 22.214.171.124 downloaded from SaaS installed as a 2nd instance of the APMIA on the same machine
The one-line fix in APMIACtrl.bat is to be fixed in the next release of DX APM SaaS AMPIA Agent.
Please reinstall your APMIA agent after modifying the line below in APMIACtrl.bat to use quotes around the 2 command line parameters:
call :update_service_details !SERVICE_NAME! !DISPLAY_NAME!
call :update_service_details "!SERVICE_NAME!" "!DISPLAY_NAME!"
After this change the generated conf\wrapper.conf after executing APMIACtrl.bat install will contain the proper values for a wrapper.name and wrapper.ntservice.displayname properties.
You can use the following command to uninstall your 2nd APMIA instance:
APMIACtrl.bat uninstall service_name "<service_name>" display_name "<display_name>"