When the autoexec.bat file is prepared for installation on the target computer, all entries in the ascnnnn.sxp file that are not already in the autoexec.bat file are copied to the autoexec.bat file.
This copy process does not apply to lines that contain one of the following commands: LH, LOADHIGH, or SET.
The Installer processes lines that include these commands as follows:
In a program call, the LH and LOADHIGH commands are not evaluated. For example, if the autoexec.bat file contains the program call LH C:\DRIVER.EXE 1024 and the ascnnnn.sxp file contains the entry C:\DRIVER.EXE, the C:\DRIVER.EXE entry from ascnnnn.sxp is added to autoexec.bat.
You can optionally use the SET command in the autoexec.bat file to assign a value to a variable. However, if both the autoexec.bat file and the ascnnnn.sxp file specify two different settings for the same variable, the setting in the ascnnnn.sxp file is used.
For example, if the autoexec.bat file specifies SET TEST=5 and the ascnnnn.sxp file specifies TEST=10, when the program is installed, the TEST=10 setting is used.
However, there is one exception:
The following variable assignment is added to the autoexec.bat file as an extension to the variable value:
(variablename=%variablevalue%value)
This statement never overwrites any previous variable settings.
The variable value extension is entered at the end of the file. You should note this value in case the new path must be used before the startup process reaches the end of the autoexec.bat file (for example, for a command). At system startup, the autoexec.bat file is evaluated sequentially.
Each extension of the PATH variable performed by the installation job is entered as an extension in the installation file.
For example, an application extends the following line:
PATH=C:\DOS;C:\WIN;
By adding C:\TEST, the entry in the ascnnnn.sxp file becomes
PATH= %PATH%C:TEST
The previous entry would extend the PATH variable by C:\TEST; during installation and would not overwrite any part of the existing entry.
|
Copyright © 2013 CA.
All rights reserved.
|
|