When trying to upgrade Policy Server version from 12.51 to 12.7, this process failed because of missing parameter value as following.
Where does InstallAnywhere get this parameter from ?
*****Custom Action:
Executing command: "/opt/java/jdk1.8.0_144/jre/bin/java" -d64 -version
CUSTOM_CODE_STDERR = java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
CUSTOM_CODE_STDOUT =
CUSTOM_CODE_RETURN_VALUE = 0
MinimumVersion:
String: 1.8 Pieces: 1,8,0,0
ExistingVersion:
String: 1.8.0.144 Pieces: 1,8,0,144
NewBuildNumberHigher
String: 1.8.0.144 Pieces: 1,8,0,144
String: 1.8 Pieces: 1,8,0,0
$MINIMUM_VERSION_CHECK$ = OK
USER_MAGIC_FOLDER_1=
CC_DIR=
SSO_INSTALL_EXIST = true
EXISTING_VERSION = 12.51.4.1146
EXISTING_LOCATION = NULL
The Policy Server installer get the 'USER_MAGIC_FOLDER_1' and 'EXISTING_LOCATION' from the Installanywhere registry file. I assume that in the customer environment the file might be missing or corrupted.
Regarding the technical details
The Installanywhere file is ".com.zerog.registry.xml" and is stored in
$HOME/.com.zerog.registry.xml for non root user
/var/.com.zerog.registry.xml for root user
and it has the below type of details
////////
<product name="CA Single Sign-On Policy Server" id="8664faee-1ec5-11b2-831f-ca5535a7a489" upgrade_id="8664faee-1ec5-11b2-831f-ca5535a7a489" version="12.70.0.1336" copyright="2015" info_url="" support_url="http://support.ca.com" location="/home/smuser/CA" last_modified="2017-09-25 06:09:56">
////////