Setting an Environment Variable in a Virtual Package

AdminStudio 2023 | 25.0 | Virtual Package Editor

Version:The procedure for setting an environment variable varies, depending on the version of the App-V package.

The Virtual Package Editor enables you to add to your App-V package one or more environment variables.

Setting an Environment Variable in an App-V 5 Package

To set an environment variable in your App-V 5 package:

1. In the View List under System Configuration, click Environment Variables.
2. Right-click the Environment Variables explorer, and then click Add Variable.

The Virtual Package Editor adds the environment variable to the Environment Variables explorer.

Tip:To change the name of the new environment variable, do one of the following:

In the Environment Variables explorer, click the name of the new environment variable and then press F2. The Virtual Package Editor highlights the name of the environment variable, enabling you to edit it as needed.
In the Environment Variables explorer, right-click the name of the new environment variable and then click Rename. The Virtual Package Editor highlights the name of the environment variable, enabling you to edit it as needed.
Select the new environment variable, and in the Settings window, change the value of the Name setting.

Setting an Environment Variable in an App-V 4.x Package

The Virtual Package Editor enables you to associate an environment variable with a target in your App-V package. To learn how to add a new target, see Adding a Target to a Virtual Package.

To set an environment variable in your App-V 4.x package:

1. In the View List under Application Data, click Shortcuts.
2. In the Targets explorer, under the target that you want to be associated with the new environment variable, right-click the Environment Variable folder, and then click Add Variable.

The Virtual Package Editor adds the environment variable to the Targets explorer.

Tip:To change the name of the new environment variable, do one of the following:

In the Targets explorer, click the name of the new environment variable and then press F2. The Virtual Package Editor highlights the name of the environment variable, enabling you to edit it as needed.
In the Targets explorer, right-click the name of the new environment variable and then click Rename. The Virtual Package Editor highlights the name of the environment variable, enabling you to edit it as needed.
Select the new environment variable, and in the Settings window, change the value of the Name setting.

See Also