In Windows 98, you cannot modify the default INF files to customize the Setup steps or the final Windows 98 installation. Instead, Windows 98 provides more flexible, easier to use tools that rely mainly on setup scripts in Msbatch.inf format.
This chapter describes the following methods for customizing your installation:
A custom setup script is a file in Msbatch.inf format that contains predefined settings for all the options that can be specified during Setup and many additional settings. Custom setup scripts can contain instructions for installing additional software.
Windows 98 provides Setup scripting capabilities to make an organization-wide rollout easier and less time consuming. Because Windows 98 is an upgrade to Windows 95, it automatically analyzes the Windows 95 installation and identifies the installed components and upgrades accordingly. However, by using a custom setup script it is possible to install any number of these components to suit the needs of your organization and users.
Also, if you need to upgrade more than 50 computers, you will probably want to use an automated installation, which also requires that you create or customize an existing setup script. For more information on creating automated installations, see Chapter 4, "Automated Installations."
You can specify custom settings for Windows 98 installations by creating a custom setup script with Microsoft Batch 98 (Batch.exe in the Microsoft Windows 98 Resource Kit utilities) and using this setup script when installing Windows 98. The default setup script is stored with the source files on the server. Custom setup scripts can be stored in users’ home directories or in an installation point on a network server.
The easiest way to create a custom setup script is a two-step process. First, you install Windows 98 on a model computer with all the optional components needed for other similar computers in your organization. To select optional components during Setup, you use the Custom option in the Setup Options dialog box, as explained in "Running Setup from MS-DOS" in Chapter 2, "Setting Up Windows 98."
Second, you run Microsoft Batch 98 (Batch.exe) as explained in "Using Microsoft Batch 98 (Batch.exe)" later in this chapter. You can find Batch.exe in the Microsoft Windows 98 Resource Kit utilities.
Tip
The Microsoft Windows 98 Resource Kit utilities include generic setup scripts for a variety of cases. These scripts can be used as is or modified to automate Windows 98 Setup.
A setup script contains sections that are identified by headings and it contains at least the following two sections:
[Setup]
[OptionalComponents]
In the [Setup] section of the script file it is possible to control how much, if any, user interaction is required during the Setup procedure. In an environment where a large number of computers must be upgraded with a minimum amount of time and user input, proper use of this section can make a big difference in the cost of upgrading in terms of time spent.
The following sample [Setup] section lists some common settings for an unattended setup:
[Setup]
EBD=0; Do not create the Windows 98 Startup Disk.
ShowEula=0; Do not display the license agreement.
UNINSTAL=0; Do not prompt to save uninstall information.
The [Optional Components] section controls what components of Windows 98 are installed on the system. In the upgrade scenario this section is most valuable for adding new components to the existing installation during the upgrade procedure. Any item followed by "=1" will be installed. Conversely, if the item if followed by "=0" it will not be installed.
The following is a sample list of optional components new to Windows 98 that can be installed, or not installed, depending on the settings in this section:
[OptionalComponents]
"Accessories"=1
"Communications"=1
"Accessibility"=1
"Accessibility Options"=1
"Accessibility Tools"=1
"Personal Web Server"=1
"Dial-Up Networking"=1
"Dial-Up Server"=1
"Internet Tools"=1
"Microsoft Outlook Express"=0
"Microsoft Chat 2.1"=1
"Web TV for Windows"=1
"WaveTop Data Broadcasting"=1
"Imaging"=1
"Microsoft NetMeeting"=1
"Microsoft NetShow Player 2.0"=1
"Online Services"=1
"America Online"=1
"AT&T WorldNet Service"=0
"Web Publishing Wizard"=1
"Windows Scripting Host"=1
"Microsoft VRML 2.0 Viewer"=1
For a complete list of all components, see Appendix D, "Msbatch.inf Parameters for Setup Scripts."
Tip for Defining Custom Entries in Setup Scripts Use the Custom Setup option to install Windows 98 on a single computer. You can define all the optional components and other items you want installed for other similar computers at your site. After Windows 98 is completely installed on this single computer, you can use any text editor to copy the [OptionalComponents], [Setup], [NameAndOrg], and [System] sections from Setuplog.txt in the computer’s root directory. Add this information to define settings for the same sections in the custom setup script. This is especially useful for defining entries for [OptionalComponents] or when many computers require the same [System] settings. Some settings for the [Network] section can also be copied from Setuplog.txt. |
You can modify existing setup scripts with a text editor to create alternate or more detailed setup scripts.
To edit Msbatch.inf
The following are the editing guidelines for setup scripts:
After a setup script and other customization files are created, Windows 98 can be installed automatically by running Setup on each client computer, using the name of the setup script as a command-line parameter. Setup can be run from any of the following:
For more information on automating installations with logon scripts, system management software, and distribution of batch files through e-mail, see Chapter 4, "Automated Installations."
Some Windows 98 Setup dialog boxes cannot be customized. Table 3.1 summarizes the items that cannot be customized or the screens that cannot be skipped when running Windows 98 Setup with a custom script. Error messages cause Setup to stop and wait for user input.
For example, messages that cannot be skipped include "Looking for a Previous Version of Windows" and warnings about disk space and conflicting network components.
Table 3.1 Setup components that cannot be skipped or customized
Dialog box or message | Comment |
---|---|
MS-DOS Uninstall | This message appears if Setup detects MS-DOS Uninstall information on the computer. You cannot turn off this display or automate a response. |
OS/2 Detected | This message appears if Setup detects that a version of OS/2 is installed on the system. You cannot turn off this display or automate a response. |
Boot Manager Partition | This message appears if Setup detects Boot Manager has been installed. You cannot use Boot Manager once you set up Windows 98. You cannot turn off this message or automate a response. |
Quit All Windows Programs | This message appears if Setup detects that other programs are running. You cannot turn off this display or automate a response. This message always appears if Setup is run using a Windows-based network management tool, such as Microsoft Systems Management Server. |
Not Enough Disk Space | This message appears if there is not enough hard disk space to support the specified installation type. You cannot turn off this display from a setup script. However, to avoid this message, start Windows 98 Setup using the setup /id switch. Caution Setup will fail during installation if it runs out of disk space. |
Looking for a Previous Version of Windows | This message appears when Setup detects a previous version of Windows. |
Checking Your System | This information message always appears. You cannot turn off this display, but no response is required. |
Preparing Directory | This information message always appears. You cannot turn off this display, but no response is required. |
Analyzing Your Computer | This information message always appears. You cannot turn off this display, but no response is required. |
ScanDisk | Before Setup starts its five-step installation process, it runs ScanDisk. To prevent ScanDisk from running, run setup with the /is switch. |
This section compares the customization methods used for Windows 95 and Windows for Workgroups versus the new ones prescribed for Windows 98.
If you are upgrading from Windows 95, you can refer to Table 3.2 to comparethe customization methods used for Windows 95 versus the ones prescribed for Windows 98. This table does not include all of the new tools available to customize Windows 98. These tools are described in "Using the New Windows 98 Tools to Customize Installations" later in this chapter.
Table 3.2 Comparison of customization methods for Windows 95 and Windows 98
Windows 95 | Windows 98 |
---|---|
Msbatch.inf to customize system settings, force Setup options, and copy additional files. | Msbatch.inf (same format). |
NetSetup to prepare a network server to run Setup.exe on client computers. | Simple drag-and-drop solution: copy the Windows 98 CAB files to an installation point on a network server. |
NetSetup to create setup scripts. | Microsoft Batch 98. |
NetSetup for creating and managing machine directories, which contain specific configuration information for client computers on a shared installation. | Shared installations are not supported in Windows 98. |
Adding device drivers by using a trial and error process. | INF Installer (Infinst.exe). |
Automate.inf for creating setup scripts that include the Windows 98 Accessibility Options. | Microsoft Batch 98 to generate a script with the Windows 98 Accessibility Options. |
Netdet.ini for detecting components on NetWare networks. | Netdet.ini (same format). |
Wrkgrp.ini to specify a list of workgroups that users can join. | Wrkgrp.ini (same format). |
System policies and user profiles to customize the desktop contents and restrict users’ abilities to change configurations. | System policies and user profiles. |
Apps.inf to create program information files (PIFs) for applications. | Apps.inf (same format). |
If you are upgrading from Windows for Workgroups, you can refer to Table 3.3 to compare the customization methods used for Windows for Workgroups versus the methods prescribed for Windows 98.
Table 3.3 Comparison of customization methods for Windows for Workgroups and Windows 98
Windows for Workgroups | Windows 98 |
---|---|
Setup.shh to customize system settings. | Msbatch.inf settings. |
Setup.inf to copy additional files or to force Setup options. | Msbatch.inf settings. |
Control.inf to list incompatible terminate-and-stay-resident (TSR) programs or force selection of devices or network clients. | Netdet.ini for NetWare TSRs;built into Setup for all others. |
Apps.inf to create program information files (PIFs) for applications. | Apps.inf (same format). |
Wrkgrp.ini to control workgroup membership. | Wrkgrp.ini (similar format, with a new entry for Windows 98 features). |
[New.Groups] in Setup.inf for custom program groups. | System policies to customize the desktop contents. |
setup /p to restore program groups; manually copying GRP files to restore desktop contents. | Grpconv.exe to convert program groups or restore default menus, as described in Chapter 5, "Setup Technical Discussion." |
System.ini, Win.ini, or Control.ini to modify system or desktop settings. | For upgrades from Windows 3.x, custom settings are migrated; for the rare cases in which there are no equivalents in the user interface or in system policies, you can still modify INI files. |