This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Knowledge Base
- :
- Environment Variable
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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 VariablesEnvironment Variable Settings
No ratings
Comments
Jul 11, 2023
09:26 AM
- Mark as Read
- Mark as New
- Permalink
- Report Inappropriate Content
Jul 11, 2023
09:26 AM
Does this apply for InstallScript based projects? I have tried to use GetEnvVar function to retrive environment variable but it doesn't work.