RunEScript

Runs another eScript package

Related Topics Link IconRelated Topics

Definition

Runs another eScript package.

  • Please note that if you delete an eScript package, that was integrated with this command, an error occurs during execution because the eScript package cannot be found anymore.
  • After running the package, control is automatically returned to the calling script. There is no need to use the ExitProc command for the called script.
    Even if the called script contains an ExitProc command, control is returned to the calling script and the rest of the script will be executed. This means that an ExitProc command in the calling script does not terminate the complete eScript package.
  • This command only controls the Installer, a classification (e.g. execute via service) has no significance for this command.

We do not recommend using RunEScript to control software installations because the command completely ignores the rights and policy-based approach of Ivanti DSM.
Please read the information below.

Settings

Options

  • Run latest released revision
    Select this option to use the latest revision.
  • Run specific revision
    Enter the revision number you want to run.
  • Abort execution of current package if specified child package cannot be executed
    The current (calling) package stops if an error occurs when running the RuneScript Package (the called package).

Important notes on using RunEScript

Do not use RunEScript to install packages that have a policy associated to them.
Since RunEScript ignores the Ivanti DSM"policy logic", the system may install a software package on a computer that is not supposed to get this package or it may overwrite a package, which was assigned with a policy, by another revision!

For this reason, you can set a new RunEScript mode in the Infrastructure view, which replaces the RunEScript command behavior with a combination of the ChangeSwAssignment and ExecutePolicies commands; this new mode complies with policies and policy instances.

The mode has three settings:

  • New: Recommended setting that uses policies and replaces RunEScript with ChangeSwAssignment and ExecutePolicies. You can also specify that the ChangeSwAssignment command updates the policy instance or else runs a 'reinstall'.
  • Legacy: This setting runs the original RunEScript command. Note: Compliance and policies are completely ignored!
  • Dynamic: If the system finds a matching policy, the RunEScript command runs in the new mode; if not, it runs in original mode (see original behavior and Legacy option).