For example:
[defaults]
MGLS_LICENSE_FILE=1717@licenseserver
WDIR=C:\my_WDIR
WDIR_PADSVX.2.6=C:\WDIR\PADSVX.2.6For more information, refer to “CFGR_INI”.
Be very careful, however, if you modify any commands outside of those areas. You could inadvertently modify code and cause the installation to fail.
REM***ADD YOUR OWN PRE INSTALL COMMANDS BELOW HERE***
REM***ADD YOUR OWN PRE INSTALL COMMANDS ABOVE HERE***The following is an example of a pre-installation command that creates CFGR_INI as a system variable and assigns a value to the variable. The command then creates a folder and copies the registrator.ini file into the folder. Because this occurs pre-installation, the installation program recognizes the variable at runtime.
REM *** ADD YOUR OWN PRE INSTALL COMMANDS BELOW HERE ***
:: If you want to run any pre-install scripts, this is where they go. :: Create a temporary registry value for the configurator.ini file.
set SYSENVKEY="HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
set CFGR_INI=C:\MentorGraphics\registrator.ini
REG ADD %SYSENVKEY% /v CFGR_INI /d "%CFGR_INI%" /f:: Copy a pre-configured registrator.ini.
mkdir C:\MentorGraphics
call copy Z:\mgc_configs\registrator.ini C:\MentorGraphics\registrator.iniREM *** ADD YOUR OWN PRE INSTALL COMMANDS ABOVE HERE ***REM***ADD YOUR OWN POST INSTALL COMMANDS BELOW HERE***REM***ADD YOUR OWN POST INSTALL COMMANDS ABOVE HERE***The following is an example of a post-installation command that removes the CFGR_INI environment variable from the system environment and removes a drive mapping.
REM *** ADD YOUR OWN POST INSTALL COMMANDS BELOW HERE ***:: Here is where you can remove the drive mapping if you want.
net use Z: /DELETE:: Delete a SYSTEM environment variable.
REG DELETE %SYSENVKEY% /v CFGR_INI /fREM *** ADD YOUR OWN POST INSTALL COMMANDS ABOVE HERE ***