Installing APM Hotfixes in a custom directory

Document ID : KB000124040
Last Modified Date : 03/01/2019
Show Technical Document Details
Introduction:


 
Question:
The APM Hotfix utility forces us to copy the script in the product install folder. We want to copy the script and run the hotfix installation from any directory. Is this possible?
 
Environment:
APM 10.5.2 or 10.7 Hotfix Installer
Answer:
Yes, this is now possible.
 
Before Example:

If EM Home folder is c:\CAAPM\EM or \opt\introscope\em  - then we need to copy the utility in that folder and run the following command:
Java. -jar APM_Hotfix_ 10.X.XXXX.jar
 
After Example:
APM can run now the script from any user desired folder pointing it to the EM home folder.
Java -jar APM_Hotfix_10.X.XXXX.jar c:\CAAPM\EM\
Or
Java -jar APM_Hotfix_10.X.XXXX.jar \opt\introscope\em\
 
Important note: The trailing “\” is a must for successful execution on both the environments.
 
Additional Information:
Important Note: 
The Hotfix utility will fail if  the provided EM path argument  has spaces in the directory name.
Ex: if EM home argument is like this  C:\Program Files\CA APM\Introscope10.7.0.162\, 
without quotes then it sets the hotfix directory after 1st space.
such as 
Initializing hotfixc:\Programhotfix\10.7.0-HF24

The correct way of doing it is 
 
java -jar APM10.7.0HF24-jar-with-dependencies.jar "c:\Program Files\CA APM\Introscope10.7.0.162\\",
so it can process the space.
Don't forget the utility needs the "\" as well or else it will not ignore the last quote.