[update-autoexec-section]
CmdAdd=command-name(,command-parameters)
CmdDelete=command-name
PrefixPath=ldid(,ldid)
RemOldPath=ldid(,ldid)
TmpDir=ldid(,subdir)
UnSet=env-var-name
Provides commands to manipulate lines in the AUTOEXEC.BAT file. The section name, update-autoexec-section-name, must appear in the UpdateAutoBat item in an Install section of the INF file.
Not all item types shown in the syntax above are needed or required in an Update
Autoexec.bat section. The section can contain as many CmdAdd, CmdDelete
and UnSet items as needed, but only one PrefixPath, RemOldPath and TmpDir
items can be used in an INF file. The syntax and meaning of each of the item types
is described later in this topic.
The installer processes all CmdDelete items before any CmdAdd
items.
CmdAdd=command-name(,"command-parameters")
Adds the given
command and optional command parameters to the AUTOEXEC.BAT file, at the end of the file.
command-name
Name of an executable file, with or without an extension. If the filename is also
defined in the SourceDisksFiles and DestinationDirs
sections of the INF file, the installer adds the appropriate path to the filename before
writing it to the AUTOEXEC.BAT file.
command-parameters
A string enclosed in double quotation marks or a replaceable string like %String1% or
%Myparam%, where the strings that replace %String1% and %Myparam% are defined in the Strings section of the INF file. The installer appends the
string to the command-name before appending the line to the end of the AUTOEXEC.BAT
file. The format of this line is dependent on the command line requirements of the
given executable file.
CmdDelete=command-name
Deletes any lines from AUTOEXEC.BAT that include the given command name. The
installer searches for and deletes any occurrence of the given name that has a filename extension of EXE, COM, and BAT.
command-name
Name of an executable file without an extension.
PrefixPath=ldid(,ldid)...
Appends the path associated with the given LDID to the path
command.
ldid
Can be any of the predefined LDID values or a new value defined in the INF. For a
definition of all the predefined LDID values, see the "Reference" topic about
the DestinationDirs section.
RemOldPath=ldid(,ldid)
Removes the path associated with the given LDID from the path command. For example,
if the user installs the new version of Windows into c:\newwin and has an old copy of
Windows in c:\windows, the following INF file item removes c:\windows from the path
environmental variable:
RemOldPath=10
ldid
Can be any of the predefined LDID values or a new value defined in the INF. For a
definition of all the predefined LDID values, see the "Reference" topic about
the DestinationDirs section.
TmpDir=ldid[,subdir]
Creates a temporary directory within the directory given by the LDID, if it does not already exist.
ldid
Can be any of the predefined LDID values or a new value defined in the INF. For a
definition of all the predefined LDID values, see the "Reference" topic about
the DestinationDirs section.
subdir
A path name. If ldid\subdir does not already exist, it is created.
UnSet=env-var-name
Removes any set command from the AUTOEXEC.BAT file that includes the given environment variable name.