CU4 line not present in dsmver output
search cancel

CU4 line not present in dsmver output

book

Article ID: 258179

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

Installation of patch CU4 is successful but the line "Cumulative Version - CU4 14.5.0.430" does not appear in dsmver output.

Normally this line should appear in dsmver output after CU4 installation :

Why on some machines after installation of CU4 this line is not present ?

 

Environment

Client Automation 14.5 CU4

Cause

This problem occurs if system PATH variable contains the path for c:\windows\system32 in format %SystemRoot%\System
 
During installation of CU4 patch, applyptf.exe calls scripts preInstall_enc.bat and postInstall_enc.bat
 
PRESYSCMD:.\preInstall_enc.bat
SYSCMD:.\postInstall_enc.bat
 
These scripts are executed but the the variable %SystemRoot% inside PATH value are not expanded. c:\windows\system32 is not in PATH variable (%SystemRoot%\System remains)
So call of REG tool is not working as it could not be found
 
Command like below is not working :
reg add "HKLM\SOFTWARE\WOW6432Node\ComputerAssociates\Unicenter ITRM\InstalledFeatures" /v "Cumulative Version - CU4" /t REG_SZ /d "14.5.0.430" /f
 
 
Log file postInstall.log contains lines like :
"Executing post-installation steps..."
"ITCM installed location: """
C:\Program Files (x86)\CA\DSM\SD\tmp\activate\6E111773-BADC-40E0-BF2D-FD78D172D018.itm\1.vol\Testfixes
"Updating agent version information ... "
"Post installation steps completed."

Resolution

In scripts preinstall_enc.bat and postinstall_enc.bat replace
REG
by
%WINDIR%\system32\reg.exe
 
 
Example :
 
In preinstall_enc.bat replace
    `REG QUERY %%REGPATH1%% /v InstallDirProduct`
by
    `%WINDIR%\system32\reg.exe QUERY %%REGPATH1%% /v InstallDirProduct`
 
 
In postinstall_enc.bat replace
    `REG QUERY %%REGPATH1%% /v InstallDirProduct`
by
    `%WINDIR%\system32\reg.exe QUERY %%REGPATH1%% /v InstallDirProduct`
 
and
 
     reg add "HKLM\SOFTWARE\WOW6432Node\ComputerAssociates\Unicenter ITRM\InstalledFeatures" /v "Cumulative Version - CU4" /t REG_SZ /d "14.5.0.430" /f
by
     %WINDIR%\system32\reg.exe add "HKLM\SOFTWARE\WOW6432Node\ComputerAssociates\Unicenter ITRM\InstalledFeatures" /v "Cumulative Version - CU4" /t REG_SZ /d "14.5.0.430" /f

Additional Information

See attached files preinstall_enc.bat and postinstall_enc.bat which includes the modification

Attachments

1674220963772__preInstall_enc.bat.txt get_app
1674220951471__postInstall_enc.bat.txt get_app