InstallShield 2016 » InstallScript Language Reference
The BatchSetFileName function specifies the name of the batch file to be used by Ez batch file functions and by BatchFileLoad when it is called with a null string ("") as its parameter. In InstallScript, this file is referred to as the default batch file. During installation initialization, the default batch file is set to the bootup Autoexec.bat file used by the system.
BatchSetFileName simply assigns the name of the default batch file. It does not verify that the specified file exists, nor does it load the file into memory. Because of this, the function will succeed even if the file name is invalid or the specified file does not exist. An invalid file name causes subsequent Ez batch file and advanced batch file functions to fail.
Note • Do not mix the Ez batch file functions with the advanced batch file functions. After calling BatchFileLoad, you cannot use Ez batch file functions until you have called BatchFileSave to save the file.
Syntax
BatchSetFileName ( szBatchFile );
Parameters
Parameter |
Description |
szBatchFile |
Specifies the fully qualified name of the batch file to be used by default in the installation script. |
Return Values
Return Value |
Description |
0 |
BatchSetFileName successfully set the specified file as the default batch file. |
< 0 |
BatchSetFileName was unable to set the file as the default batch file. |
See Also
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |