virtaenvedit
This command sets or removes a container environment variable. Administrator privileges are required.
Syntax
virtaenvedit VAA {<name>=<value> [/U] | <Name> /D} }
Options
Option | Description |
VAA | Full path of the container. |
name=value | The name of the environment variable and its value. The value can be a string or a semi-colon (;) delimited string. It can contain an environment variable enclosed by %. MyVariable=%PATH%;C:\path2 |
/U | Flag as a user environment variable. A system environment variable is assumed without the flag. |
/D | Delete the environment variable, both user and system. |
/D /U | Delete the user environment variable only. |
Merged Path Environment Variable
If, for example, there are two applications in a container, and the Path
environment variable is merged, it may be useful for you to consider what the System environment variables (set for everyone) and User environment variables (set for each user) are in both the container and the underlying operating system, and the order in which they are merged.
The container environment variables will be merged with the underlying operating system. The contents of the values will not be merged, so if a value exists in the underlying operating system that is the same in the container, the container will take precedence.
System environment variables come first, followed by the User environment variables. The System environment variables override the User environment variables but the operating system merges the Path environment variables. Your path will look like this:
<VAA_SYS_PATH | UOS_SYS_PATH> ; <VAA_USER_PATH | UOS_USER_PATH>
where the OR case happens only when the container path does not exist.