This section describes how to use INF Installer to prepare for installing other software with Windows 95 and how to add Run-Once actions that occur at the end of Setup.
Server-based Setup cannot be used to add extra components, such as Windows 95 Resource Kit utilities or applications and services from the ADMIN directory on the Windows 95 compact disc. To add such components or to add any other software that uses Windows 95 INF files, you must make sure that the source files are installed correctly, the INF files used by Windows 95 Setup are modified properly, and correct entries are added to MSBATCH.INF.
The INF Installer utility (INFINST.EXE) accomplishes these actions automatically for any software that has a Windows 95 INF file. INF Installer is part of the Windows 95 Resource Kit utilities. Before you can use INF Installer, you must use Server-based Setup to install the Windows 95 source files in a network directory, as described in Chapter 4, "Server-Based Setup for Windows 95."
INF Installer copies the files listed in the component's INF file and makes the following modifications in the MSBATCH.INF file that's in the Windows directory on the server that contains the Windows 95 source files:
Note For any component to be installed using this setup script, you must manually remove the semicolon before the entry for the component name.
If you want to add to the Run-Once operations that occur the first time Windows 95 starts, you can define entries for these actions in MSBATCH.INF. In addition, you must make sure that the required files are available with the Windows 95 source files, or are otherwise available on a shared resource that users installing Windows 95 have access to. For software components that have Windows 95 INF files, you can use INF Installer to prepare files to be included with Windows 95 Setup. You must also add these entries in the setup script:
For more examples of [Install] section entries, see Appendix D, "MSBATCH.INF Parameters."
The following shows the Run-Once entry from MSMAIL.INF that causes the setup routine for Microsoft Mail to run after Windows 95 is installed:
[MSMailAddReg]
HKLM,Software\Microsoft\Windows\CurrentVersion
\RunOnce\Setup,"%EmailRunOnce%",,"%25%\mlset32.exe"
Important To create definitions in MSBATCH.INF for Run-Once statements or other actions, you must provide the precise Registry settings that the program uses to read or write to the Registry. This requires programmatic understanding of the software, or you must use values provided by the software manufacturer.
If you want to add other software as part of Windows 95 installation, but that software does not have a Windows 95 INF file, you must use a system management tool for software distribution, such as Microsoft Systems Management Server.
Tip Avoid using relative path names in setup scripts so that you can make sure the commands are run from the correct directory.