Silent upgrade fails with custom JRE: AutoSys System Agent on Windows
search cancel

Silent upgrade fails with custom JRE: AutoSys System Agent on Windows

book

Article ID: 441052

calendar_today

Updated On:

Products

Workload Automation Agent

Issue/Introduction

When performing a silent upgrade of the AutoSys Workload Automation System Agent to release 24.0, the installer may fail to initialize or execute correctly if the custom Java Runtime Environment (JRE) path contains spaces. This issue typically results in a silent failure or an initialization error where the setup.exe cannot locate the necessary JVM binaries. To resolve this, ensure the custom JRE is located in a directory path without spaces and use specific JVM variables during the command-line execution.

Symptoms

  • The silent upgrade process terminates immediately after launch.
  • The installer logs indicate an inability to find or load the java.exe binary.
  • Setup fails when the custom JRE path is defined as a directory like C:\Program Files\Java\jre.

Environment

  • AutoSys Workload Automation System Agent
  • Operating System: Windows

Cause

The AutoSys System Agent installer (setup.exe) cannot correctly parse directory paths containing spaces when passed via the -DJVM_PATH and -DJVM_DOT parameters during a silent installation.

Resolution

To successfully upgrade the agent, move the custom JRE to a path without spaces and execute the installation from an elevated command prompt.

  1. Extract or move the custom JRE to a temporary or permanent directory that does not contain spaces (e.g., C:\tmp\jre).
  2. Open an Elevated Command Prompt (Run as Administrator).
  3. Execute the installer using the following command structure:
    dos
     
    setup.exe -DACCEPT_EULA="ACCEPT" -DAGENT_UPGRADE_PATH="C:\Program Files\CA\WorkloadAutomationAE\SystemAgent\WA_AGENT_WF" -DJVM_PATH="C:\tmp\jre\bin\java.exe" -DJVM_DOT="C:\tmp\jre" -DUSER_INSTALL_DIR="C:\Program Files\CA\WorkloadAutomationAE\SystemAgent\WA_AGENT_WF" -i silent

Parameter Breakdown:

  • -DACCEPT_EULA="ACCEPT": Automatically accepts the End User License Agreement.
  • -DAGENT_UPGRADE_PATH: Specifies the directory of the existing agent instance being upgraded.
  • -DJVM_PATH: Points directly to the java.exe binary (Path must not contain spaces).
  • -DJVM_DOT: Points to the root directory of the custom JRE (Path must not contain spaces).
  • -DUSER_INSTALL_DIR: Specifies the target installation directory.
  • -i silent: Triggers the unattended installation mode.

Additional Information

  • For further details on silent install parameters, refer to the AutoSys System Agent Documentation.
  • If your environment requires a response file, ensure all paths for DJVM_PATH and DJVM_DOT within the .properties file also exclude spaces.
  • To speak with a customer representative or a Support Engineer, see Contact Support. Scroll to the bottom of the page and click on your respective region.