Automating Client Installation and Upgrade |
To install Windows 2000 Professional on multiple computers over a network, you must create at least one set of distribution folders. The distribution folders typically reside on a server where computers can connect and install Windows 2000 by running Winnt.exe or Winnt32.exe on the destination computer. You can use the same set of distribution folders with different answer files for different system implementations. Even if you intend to use disk imaging as your installation method, starting with distribution folders will provide consistent implementations for a variety of system types. In addition, you can use distribution folders to update future images by editing the files in the distribution folders or by modifying the answer files to generate updated images without having to start from the beginning.
To help load balance the servers and make the
Critical Decision Before you can automate the installation of Windows 2000 Professional, you must decide if the installation will be an upgrade from Windows NT or a clean installation. |
The following two items will help you determine whether to Setup commands, see "Reviewing the Windows 2000 Setup Commands" later in this chapter.
Note
In this chapter, the term "Windows NT" refers to both Windows NT 3.51 and Windows NT 4.0.
The distribution folders contain the Windows 2000 Professional installation files, as well as any device drivers and other files needed for the installation.
Setup Manager, a tool that is available on the Windows 2000 Professional CD, can help you automate the process of creating a distribution folder. For more information about Setup Manager, see "Creating the Answer File" later in this chapter.
Note
In this chapter, "Windows 2000 Setup" is also referred to as "Setup."
To create a distribution folder
To help differentiate between multiple distribution shares for the different editions of Windows 2000 (Windows 2000 Professional, Microsoft® Windows® 2000 Server, and one for Microsoft® Windows® 2000 Advanced Server), you can choose another name for this folder. If you plan to use localized language versions of Windows 2000 for international branches of your organization, you can create separate distribution shares for each localized version.
The $OEM$ subfolder provides the necessary folder structure for supplemental files to be copied to the target computer during Setup. These files include drivers, utilities, applications, and any other files required for deployment of Windows 2000 Professional within your organization.
An example of the structure for the distribution folder is shown in Figure 25.2.
Figure 25.2 Example Structure for the Distribution Folder
This is the distribution folder, which contains all of the files required to install Windows 2000. You create this folder at the root of the distribution share by copying the contents of the i386 folder on the Windows 2000 Professional CD to the distribution folder.
You create the $OEM$ subfolder in the distribution folder directly beneath the i386 folder. During Setup, you can automatically copy directories, standard 8.3 format files, and any tools needed for your automated installation process to the $OEM$ subfolder.
If you use the OEMFILESPATH key in the answer file, you can create the $OEM$ subfolder outside the distribution folder. For information about the definition of the answer file, see "Reviewing the Answer File" later in this chapter. For more information about answer file parameters and syntax, see "Microsoft Windows 2000 Guide to Unattended Setup"(Unattend.doc) on the Microsoft Windows 2000 operating system CD. The Unattend.doc file is part of the Deploy.cab file in the \Support\Tools folder. In Windows 98 or Windows 2000, use Windows Explorer to extract this document. In Windows 95 and earlier, or in
The $OEM$ subfolder can contain the optional file Cmdlines.txt, which contains a list of commands to be run during the graphical user interface (GUI) portion of Setup. These commands can be used to install additional tools that you want to include with your installations. For more information about the Cmdlines.txt file, see "Using Cmdlines.txt" later in this chapter.
As long as Setup finds the $OEM$ subfolder in the root of the distribution point, it copies all of the files found in this directory to the temporary directory that is created during the text portion of Setup.
Note
In this chapter, the GUI portion of Setup is referred to as "GUI mode," and the text portion of Setup is referred to as "text mode."
The $OEM$\textmode subfolder contains new or updated files for installing mass storage device drivers and hardware abstraction layers (HALS). These files can include OEM HALs, drivers for Small Computer System Interface (SCSI) devices, and Txtsetup.oem, which directs the loading and installing of these components.
Make sure to include the Txtsetup.oem file. All files placed in the $OEM$\textmode subfolder (HALs, drivers, and Txtsetup.oem) must be listed in the [OEMBootFiles] section of the answer file.
The $OEM$\$$ subfolder is equivalent to the
The $OEM$\$1 subfolder, which is new for Windows 2000, points to the drive on which Windows 2000 is installed. $1 is equivalent to the
You can use the $OEM$\$1\pnpdrvrs subfolder, which is new for Windows 2000, to place new or updated Plug and Play device drivers in your distribution folders. These folders are copied to the
The $OEM$\$1\Sysprep subfolder is optional. This subfolder contains the files that you need to run the Sysprep tool. For information about these files, see "Using Sysprep to Duplicate Disks" later in this chapter.
During text mode, the structure of each $OEM$\drive_letter subfolder is copied to the root of the corresponding drive in the target computer. For example, files that you place in the $OEM$\D subfolder are copied to the root of drive D. You can also create subfolders within these subfolders. For example, $OEM$\E\Misc causes Setup to create a subfolder called Misc on drive E.
Files that have to be renamed must be listed in $$Rename.txt. For more information about renaming files, see "Converting File Name Size Using $$Rename.txt" later in this chapter. Note that the files in the distribution folders must have short file names that use the format 8.3 naming convention.
In Windows 2000, Plug and Play detects and installs most hardware devices, which can be loaded later during Setup. However, mass storage devices, such as hard disks, must be properly installed for full Plug and Play support to be available during GUI mode.
Note
You do not need to specify a device if it is already supported by Windows 2000.
To install SCSI devices during text mode — that is, before full Plug and Play support is available — you must provide a Txtsetup.oem file that describes how Setup must install the particular SCSI device.
Important
Before you use updated drivers, verify that they are signed. If they are not signed, Setup will fail. You can check the signed status for individual drivers in Device Manager, or you can run Sigverif.exe to generate a Sigverif.txt file in the
To install a mass storage device
Note
Some drivers, such as SCSI miniport drivers, might not include a .dll file.
"Adaptec 2940..." = "OEM"
Information for this section can be obtained from the Txtsetup.oem file, which is provided by the hardware manufacturer.
For more information about answer file parameters and syntax, see "Microsoft Windows 2000 Guide to Unattended Setup" (Unattend.doc) on the Microsoft Windows 2000 operating system CD. The Unattend.doc file is part of the Deploy.cab file in the \Support\Tools folder. In Windows 98 or Windows 2000, use Windows Explorer to extract this document. In Windows 95 and earlier, or in
[OEMBootFiles]
Driver.sys
Driver.dll
Driver.inf
Txtsetup.oem
Where Driver is the driver name.
"xxxxx" , "yyyyy"
where xxxxx represents the device identifier (ID), and yyyyy represents the service associated with the device.
For example, to install the Symc810 driver, which has a device ID of PCI\VEN_1000&DEV_0001, verify that your Txtsetup.oem file contains the following additional section:
[HardwareIds.scsi.symc810]
id = "PCI\VEN_1000&DEV_0001" , "symc810"
To specify hardware abstraction layers (HALs) for installation, you need a Txtsetup.oem file and the HAL files, which the vendor provides. You must use the same Txtsetup.oem file if you are installing mass storage device drivers. Only one Txtsetup.oem file can be used, so if you need to install HALs and mass storage device drivers, you need to combine entries into one file.
To use
To install a HAL
[Unattend]
Computertype = "HALDescription ", OEM
Information for the HALDescription can be obtained from the [Computer] section of the Txtsetup.oem file from the driver provider.
The following procedure demonstrates how to install Plug and Play devices that are not mass storage devices or HALs, and are not included on the Windows 2000 operating system CD.
To install Plug and Play devices
$OEM$\$1\PnPDrvs
OEMPnPDriversPath = "PnPDrvs"
If you have subfolders in the PnPDrvs folder, you must specify the path to each subfolder. The paths must be separated by semicolons.
To easily maintain the folders so that they can accommodate future device drivers, create subfolders for potential device drivers. By dividing the folders into subfolders, you can store device driver files by device type, rather than having all device driver files in one folder. Suggested subfolders include Audio, Modem, Net, Print, Video, and Other. An Other folder can give you the flexibility to store new hardware devices that might not be currently known.
For example, if the PnPDrvs folder contains the subfolders Audio, Modem, and Net, the answer file must contain the following line:
OEMPnPDriversPath = "PnPDrvs\Audio;PnPDrvs\Modem;PnPDrvs\Net"
The $$Rename.txt file changes short file names to long file names during Setup. $$Rename.txt lists all of the files in a particular folder that need to be renamed. Each folder that contains short file names that should be renamed must contain its own version of $$Rename.txt.
To use $$Rename.txt, put the file in a folder that contains files that need to be converted. The syntax for $$Rename.txt is as follows:
[section_name_1]
short_name_1 = "long_name_1"
short_name_2 = "long_name_2"
short_name_x = "long_name_x"
[section_name_2]
short_name_1 = "long_name_1"
short_name_2 = "long_name_2"
short_name_x = "long_name_x"
Parameters are defined as follows:
section_name_x. The path to the subfolder that contains the files. A section does not need to be named, or it can have a backslash (\) as a name, which indicates that the section contains the names of the files or subfolders that are in the root of the drive.
short_name_x. The name of the file or subfolder within this subfolder to be renamed. The name must not be enclosed in quotation marks.
long_name_x. The new name of the file or subfolder. This name must be enclosed in quotation marks if it contains spaces or commas.
Tip
If you are using