Environment Variables

PADS applications use wrapper scripts to create the environment at runtime. The installation process sets most environment variable values automatically. However, you must set MGLS_LICENSE_FILE / LM_LICENSE_FILE and WDIR. The registration process prompts you to set these values or to accept the previously defined values. Optionally, you can provide these values by defining the CFGR_INI environment variable and creating a registrator.ini or configurator.ini file.
Note:

If you want to change environment variable values or add them prior to installation, refer to “How to set an environment variable on Windows” on Support Center.

Table 1. Environment Variable Summary

Environment Variable

Description

MGLS_LICENSE_FILE or LM_LICENSE_FILEThe applications use the MGLS_LICENSE_FILE Mentor environment variable or the LM_LICENSE_FILE FlexNet environment variable to determine the location of the license files or servers. For Mentor applications, the MGLS_LICENSE_FILE setting overrides the LM_LICENSE_FILE setting. You must set at least one of these environment variables.
WDIRApplications in the PADS flow require a personal settings folder (WDIR). A WDIR path consists of one or more folder locations, each of which has a unique function and scope. The WDIR environment variable defines the WDIR path.
CFGR_INIUse the optional CFGR_INI environment variable to point to the registrator.ini file or, if you have pre-VX releases, to the configurator.ini file. When registering and configuring installs on Windows, you can create this .ini file, which provides the values for the license path and WDIR path, thereby enabling you to avoid prompts asking for this information during installation or when you use the Release Switcher. The .ini file also enables you to use unattended or silent mode, essential during batch installation.