Automating Client Installation and Upgrade

Previous Topic Next Topic

Creating the Distribution Folders

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 file-copy phase of Windows 2000 Setup faster for computers already running Windows 95, Windows 98, Windows NT, or Windows 2000, you can create distribution folders on multiple servers. You can then run Winnt32.exe with up to eight source file locations. For more information about Professional on multiple computers.

icon 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-icon

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-icon

Note

In this chapter, "Windows 2000 Setup" is also referred to as "Setup."

To create a distribution folder

  1. Connect to the network server on which you want to create the distribution folder.
  2. Create an \i386 folder on the distribution share of the network server.

    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.

  3. Copy the contents of the \i386 folder from the Windows 2000 Professional CD to the folder that you created.
  4. In the folder that you created, create a subfolder named $OEM$.

    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.

Structuring the Distribution Folder

An example of the structure for the distribution folder is shown in Figure 25.2.

Figure 25.2    Example Structure for the Distribution Folder
Enlarge figure

Figure 25.2 Example Structure for the Distribution Folder

i386

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.

$OEM$

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 MS-DOS, use the Extract command to access the file.

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-icon

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."

$OEM$\textmode

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.

$OEM$\$$

The $OEM$\$$ subfolder is equivalent to the %systemroot% or %windir% environment variables. The subfolder contains additional files that you want copied to the various subfolders of the Windows 2000 installation directory. The structure of this subfolder must match the structure of a standard Windows 2000 installation, where $OEM$\$$ matches %systemroot % or %windir% (for example, C:\winnt), $OEM$\$$\System32 matches %windir%\System32, and so on. Each subfolder must contain the files that need to be copied to the corresponding system folder on the target computer.

$OEM$\$1

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 %systemdrive% environment variable. For example, if you are installing Windows 2000 on drive D, $OEM$\$1 points to drive D.

$OEM$\$1\pnpdrvrs

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 %systemdrive%\pnpdrvrs location on the target computer. Adding the OemPnPDriversPath parameter to your answer file directs Windows 2000 to look (both during and after Setup) for new or updated Plug and Play drivers in the folders that you created, as well as those originally included with the system. Note that you can replace pnpdrvrs with a name of your own that is eight characters long or less.

$OEM$\$1\Sysprep

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.

$OEM$\drive_letter

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.

Installing Mass Storage Devices

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-icon

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-icon

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 %windir% subfolder. Sigverif.txt lists the signed status for all drivers on the system.

To install a mass storage device

  1. Create the Textmode subfolder in the $OEM$ subfolder in the distribution folder.
  2. Copy the following files, which you obtain from the device vendor, to the Textmode subfolder (replace the word Driver with the appropriate driver name):

  3. note-icon

    Note

    Some drivers, such as SCSI miniport drivers, might not include a .dll file.

  4. In the answer file, create a [MassStorageDrivers] section, and in this section type the driver entries that you want to include. For example, a possible entry in the [MassStorageDrivers] section would be the following:
  5. "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 MS-DOS, use the Extract command to access the file.

  6. In the answer file create an [OEMBootFiles] section, and in this section type a list of the files in the $OEM$\Textmode folder. For example, a possible entry to the [OEMBootFiles] section would be the following:
  7. [OEMBootFiles]

    Driver.sys

    Driver.dll

    Driver.inf

    Txtsetup.oem


    Where Driver is the driver name.

  8. If your mass storage device is a Plug and Play device, it will have a section named [HardwareIds.Scsi.yyyyy] in the Txtsetup.oem file. If it does not have such a section, you will need to create one and then type the following entry in the section:

    "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:

  9. [HardwareIds.scsi.symc810]

    id = "PCI\VEN_1000&DEV_0001" , "symc810"


Installing Hardware Abstraction Layers

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 third-party drivers, you must also make appropriate changes to the answer file. For more information about answer file parameters and syntax, see the "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 MS-DOS, use the Extract command to access the file.

To install a HAL

  1. If you have not already done so, create a Textmode subfolder in the $OEM$ folder.
  2. Copy the files that you receive from the device vendor to the Textmode subfolder.
  3. In the answer file, edit the [Unattend] section for the HAL, adding any drivers that you want to install. For example, type the following:
  4. [Unattend]

    Computertype = "HALDescription ", OEM


    Information for the HALDescription can be obtained from the [Computer] section of the Txtsetup.oem file from the driver provider.

  5. In the answer file, create an [OEMBootFiles] section, and enter the names of the files in the $OEM$\Textmode folder.

Installing Plug and Play Devices

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

  1. Create a subfolder in the distribution folder for special Plug and Play drivers and their .inf files. For example, you can create a folder called PnPDrvs:
  2. $OEM$\$1\PnPDrvs


  3. Add the path to the list of Plug and Play search drives by adding the following line to the Unattend.txt file:
  4. 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"


Converting File Name Size Using $$Rename.txt

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 MS-DOS to start the installation, and your MS-DOS-based tools cannot copy folders with path names longer than 64 characters, you can use short file names for the folders and then use $$Rename.txt to rename them later.

© 1985-2000 Microsoft Corporation. All rights reserved.