Launch Executable action having environment variable fails to interact with user desktop

  • 7014979
  • 29-Apr-2014
  • 29-Apr-2014

Environment

Novell ZENworks Configuration Management 11.2.4 Bundles
Novell ZENworks Configuration Management 11.3 Bundles

Situation

A Launch Executable bundle action is configured to launch CMD.EXE having the Command Line Parameters field including the path to a cmd batch file.
In the same bundle action is added a variable in the Environment Variables table on the General tab.

The issue replicates e.g. if the Command Line Parameters filed contains the switch /k, which should keep the cmd window open after batch file execution.
Another example is to contain the pause command in the batch file.

In this example neither the cmd windows stays open nor the pause command is obeyed but script execution continues immediately.

Cause

To overcome the issue documented in TID 7012880, while launching the specified executable a flag called RedirectStandardOutput gets set to True. This flag alters the way how the output of the related process is handled. For more information see e.g. ProcessStartInfo::RedirectStandardOutput Property.

Status

Reported to Engineering