Set System Environment Variable Action

InstallAnywhere 2024 R2

You can use the Set System Environment Variable action to set the value for an environment variable on the end user's system. This action is compatible with Windows and UNIX platform only.

Properties Tab

The Properties tab of the Set System Environment Variable Action customizer includes the following options:

Set System Environment Variable Action customizer

Option

Description

Variable Name

Specify the name of the environment variable whose value you want to create or modify.

Name may be either a variable (such as $ENV_VARIABLE_NAMES$) or a literal (such as CLASSPATH)

Set Value To

Specify the value for the environment variable (specified in the Variable Name setting).

Value may be either a variable (such as $USER_MAGIC_1$) or a literal (such as C:\Program Files)

When Setting This Variable

Use this option to instruct the installer to adjust the value in the Set Value To setting relative to the specified environment variable's existing value. Available options are:

Replace existing value—Select this option to replace the value of specified environment variable with the new value that is specified in the Set Value To setting.
Prepend to existing value—Select this option to add the new value that is specified in the Set Value To setting to the beginning of the existing value.
Append to existing value—Select this option to add the new value that is specified in the Set Value To setting to the end of the existing value.

Set This Variable For

Use this option to instruct the installer to set the value of environment variable for only the current user or all users. Available options are:

Current user—Select this option to set the value of specified environment variable for the current user only.
All users—Select this option to set the value of specified environment variable for all users.

Rules, Tags, and Rollback Tabs

For information on the other tabs on this customizer, see the following:

Rules—Use this tab to add rules to the selected action. For more information, see Assigning a Rule to an Action and Rules Reference.
Tags—Use this tab to add build configuration tags to the selected action. For more information, see Assigning Tags to Project Elements.
Rollback—Use this tab to specify rollback behavior for the selected action. For more information, see Configuring Installation Rollback Behavior.