To insert a new environment variable:

  1. Select Add > Environment Variable.

SWM_Depot_002

  1. Select Add in the Environment Variables dialog box.
  2. Add the values in the Insert Environment Variable dialog box and press OK.

The Insert Environment Variable Dialog

Adds a new environment variable.

SWM_Depot_003

  • Name

Specifies the name of the environment variable.

  • Value

Specifies the value of the environment variable.


Environment variables are only evaluated during the software depot runtime and do not change the environment of the Windows system. When used, they are enclosed between two percent characters, e.g., %WindowsUser%.
Environment variables allow you to make the software depot independent of the location where the document is actually stored.
In addition to the environment variables, there is a variety of predefined internal variables which can also be accessed via a % symbol. The following table provides an overview of these variables. Neither the internal variables nor the defined variables are case-sensitive. The internal variables are checked first, followed by the environment variables.

The variables from PackageID to Check vary from package to package and always refer to the current package. Table environment variables