How to install Agents using MSIEXEC commands?
search cancel

How to install Agents using MSIEXEC commands?

book

Article ID: 44373

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

For some reason, I am unable to install the agents using Deploywrapper.exe. Is there an alternate way to install the agents using MSIEXEC commands instead?

Environment

Client Automation - All Versions

Resolution

  1. To manually install the agent copy the following folder from the DSM Manager to the target:

 

C:\Program Files (x86)\CA\DSM\Packages\Public\CAUnicenterDSM\AgentAM+RC+SD\12.0\ENU\Windows_x86

Note: If this folder does not exist please run the following command from the root of the installation media:

dmscript.exe dsmpush.dms copy -sd -am -rc -REGSD -REGDM

 

  1. Once the folder is created, copy it to the target or the desired location from where you want to execute the install. 

 

  1. Create a batch file using the following commands:
cd CAPKI
start /wait setup.exe install caller=CADSMCAPKI verbose instdir="C:\Program Files (x86)\CA\SC\CAPKI"
cd..

start /wait msiexec.exe /i "SSA\CASockAdapterSetupWin32NoEtpki.msi" ALLUSERS=1 /l*v "%temp%\DSMSetupSSA.log" /qn
start /wait msiexec.exe /i "AgtBHW.msi" AGENT_SERVER=<SERVERNAME> CAF_START_SERVICE=0 ALLUSERS=1 INSTALLELEVATED=1 REBOOT=REALLYSUPPRESS /l*v "%temp%\DSMSetupAgentBHW.log" /qn
start /wait msiexec.exe /i "AgtAM.msi" AGENT_SERVER=<SERVERNAME> CAF_START_SERVICE=0 ALLUSERS=1 INSTALLELEVATED=1 REBOOT=REALLYSUPPRESS /l*v "%temp%\DSMSetupAMAgent.log" /qn
start /wait msiexec.exe /i "AgtSD.msi" AGENT_SERVER=<SERVERNAME> CAF_START_SERVICE=0 ALLUSERS=1 INSTALLELEVATED=1 REBOOT=REALLYSUPPRESS /l*v "%temp%\DSMSetupSDAgent.log" /qn

REM vc_redist.x86.exe installation is needed starting RC Agent 14.0 SP3. Remove the command line below for install of RC Agent 14.0 SP2 or earlier version.
start /wait cmd /c "VSRedist\vc_redist.x86.exe" /install /quiet /norestart

start /wait msiexec.exe /i "AgtRC.msi" AGENT_SERVER=<SERVERNAME> CAF_START_SERVICE=1 ALLUSERS=1 INSTALLELEVATED=1 REBOOT=REALLYSUPPRESS /l*v "%temp%\DSMSetupRCAgent.log" /qn


REM Starting 14.5 add the execution of InstallTestFixes.bat
cd TestFixes
start /wait cmd /c .\InstallTestFixes.bat
cd ..

Remark :

Parameter CAF_START_SERVICE=1 should be added for the last MSI installation plugin in order to start caf at the end of installation.

CAF_START_SERVICE=0 should be added for all other MSI installation plugins in order to avoid multiple "caf stop" / "caf start" between plugin installation.

 

  1. Copy the batch file to the folder you created in Step2 and execute it.