cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Environment Variable

Environment Variable

Summary

What is an environment variable?

Question

Discussion about what is an environment variable.

Answer

An environment variable represents some aspect of your computer environment, that is, the configuration of hardware and software on your computer. Environment variables can be used to represent drives, program paths, directory names, and other items associated with your computer environment as well as information such as the date, time, and your default printer and text editor. Installation programs use environment variables to provide information to the installation and to store information for later use by the application you are installing.


Additional Information

1) When being created, environment variables are available to the MSI after installfinalize.
2) Two actions happen in the execute sequence to install/create the variable.

Reference Microsoft article: Environment Table

Note that environment variables do not change for the installation in progress when either the WriteEnvironmentStrings action or RemoveEnvironmentStrings action are run. On Windows 2000, this information is stored in the registry and a message notifies the system of changes when the installation completes. A new process, or another process that checks for these messages, uses the new environment variables.

Related KB Articles

Setting Environment Variables

Environment Variable Settings
Was this article helpful? Yes No
No ratings
Comments

Does this apply for InstallScript  based projects? I have tried to use GetEnvVar function to retrive environment variable  but it doesn't work.

Version history
Last update:
‎Oct 01, 2007 10:58 AM
Updated by: