Symptom:
CA Process Automation actions in an Application for Service Provisioning do not support environment variable substitution by default.
Solution:
To ensure successful command execution, place cmd.exe /c in front of the command directive.
Example:
The following command executes successfully when executed as an installation action of Execute Program type in an Application.
%CD%\..\ORCDAgent\InstallMSI.cmd /i %CD%\httpd-2.2.22-win32-x86-openssl-0.9.8t.msi /qn INSTALLDIR=C:\Apache SERVERADMIN="admin@localhost.com" SERVERNAME=%LOCALHOST% AgreeToLicense=1 ALLUSERS=1 RebootYESNo=No
However, the same command fails if used in an installation action of Process Automation Process type. To correct this problem, you must append cmd.exe /c in front of the original command as follows:
cmd.exe /c %CD%\..\ORCDAgent\InstallMSI.cmd /i %CD%\httpd-2.2.22-win32-x86-openssl-0.9.8t.msi /qn INSTALLDIR=C:\Apache SERVERADMIN="admin@localhost.com" SERVERNAME=%LOCALHOST% AgreeToLicense=1 ALLUSERS=1 RebootYESNo=No
Copyright © 2013 CA. All rights reserved. |
|