Microsoft Windows 2000

Hotfix Installation and Deployment Guide

About this Guide

Organization of This Guide
Terminology Used in This Guide

What is a hotfix?

The Update Installation

Update Installation Methods
Installing Hotfixes on Computers Running Windows 2000

The Combination Installation

Installing Windows 2000 with the Service Pack and Hotfixes (Recommended)
Installing Windows 2000 with Hotfixes by Using Cmdlines.txt

Removing Windows 2000 Hotfixes

Copyright



About This Guide

Back to Top

This guide provides instructions for administrators installing hotfixes for Windows 2000 Professional, Windows 2000 Server, Windows 2000 Advanced Server, and Windows 2000 with Server Appliance Kit. This guide includes technical details, procedures, and recommendations for successfully installing Windows 2000 hotfixes on multiple computers in a small business or corporate environment. Note that you can install hotfixes either alone or in combination with Windows 2000 (with or without a service pack).

This guide assumes a working knowledge of Windows 2000 and hotfix installations. Although some basic operating system information is included in the document, this is not a replacement for either the Windows 2000 documentation or formal training. Rather, it is intended to complement these sources of information.

Organization of This Guide

This guide includes the following main sections:

Terminology Used in This Guide

Before you get started, it's important to understand a few specialized terms that are used in this guide. These terms, which are specific to Windows 2000 or hotfix installations (or both), are defined in the following table.

TermDefinition
systemrootThe "root" directory of the Windows installation on the computer's hard disk. For example, on most computers, systemroot is C:\Winnt.
systemdriveThe drive where the operating system is installed. For example, on most computers, the systemdrive is C:\.
integratedInstalled together as a single installation (for example, Windows 2000 and Service Pack 3).



What is a hotfix?

Back to Top

A hotfix is a file or collection of files that you can apply to Windows 2000 to correct a specific problem.

A hotfix is provided as an executable (.exe) file. When you install a hotfix, backup files are created automatically so that you can remove the hotfix later if you want. The installation process also copies files to specific folders and updates registry settings.

Windows 2000 Hotfix.exe programs are named according to the following convention:

Q######_XXX_YYY_ZZZ_LL.exe

where:

Hotfixes are packaged in a self-installing format. There are two main types of hotfix installations:

Important

Hotfixes are applied only to software that is already installed when you apply the hotfixes. For instance, if you remove a component and later reinstall it, you must reinstall any hotfixes that apply for that component. Fixes included in a service pack do not work the same way. After you install a service pack, fixes are applied to all components you add or reinstall without you having to reinstall the service pack.



The Update Installation

Back to Top

During the update installation, Windows hotfixes are applied to a computer that is already running Windows 2000. When you run the hotfix package, it automatically installs the updated system files and makes the necessary registry changes. After the computer is restarted (required only for some system files that are used during the installation), the installation is complete and Windows 2000 runs with an updated file set.

You can install the hotfixes by running the Hotfix.exe program, which extracts the hotfix files and runs the Update.exe installation program. Update.exe then checks the service pack version you are currently using. If the service pack version was released before the hotfixes and the language is the same, the Update.exe program installs the hotfixes automatically. If your service pack version was released after the hotfixes, the installation is not completed and an error message appears, stating that the version is incorrect.

Note

If your service pack version was released after the hotfixes and you were completing an unattended installation (using either the /M or /Q option), the installation quits and no message displays.

If the language of the hotfixes does not match the language you have set up for Windows 2000, Setup will be interrupted. If there are no version conflicts, Setup continues the installation. The Update.exe program registers the hotfixes under the following registry keys:

HKEY_LOCAL_MACHINE \Software\Microsoft\WindowsNT\CurrentVersion\Hotfix\Q######

HKEY_LOCAL_MACHINE \Software\Microsoft\Updates\Windows 2000\SP4\Q######

During the installation, information for removing the hotfixes is stored in a hidden folder named systemroot\$NtUninstallQ######$. For information about removing hotfixes, see Removing Windows 2000 Hotfixes later in this document.

The following sections describe how to install the Windows hotfixes from a shared network distribution folder.

Update Installation Methods

There are several methods for performing an update installation, including running the Hotfix.exe program manually with a combination of installation options, using Systems Management Server (SMS), and using the Windows Installer. You can distribute hotfixes either by using a shared network distribution folder or by downloading the hotfixes from the Web. Because this guide is intended primarily for corporate users, the update installation procedures provided in this document focus on the shared network distribution method, which is the most common means of hotfix distribution for this audience.

The instructions in this section explain how to install hotfixes on computers that are already running Windows 2000.

Using Qchain.exe

Hotfix chaining during update installations is supported in Windows 2000. Qchain.exe is a utility that enables you to install multiple hotfixes without having to restart your computer after each one is installed. If multiple hotfixes replace the same file, Qchain.exe ensures that the correct version is installed. Windows 2000 SP3 and all post-SP3 hotfixes have Qchain.exe functionality built in. You can install SP3 and then install any number of post-SP3 hotfixes without having to restart the computer in between. To determine whether a given hotfix was released after SP3, download the hotfix and check the naming convention used. All post-SP3 hotfixes use the following naming convention:

Q######_W2K_SP4_x86_en.exe

For more information about the Qchain.exe utility, see article Q296861, "Use QChain.exe to Install Multiple Hotfixes with Only One Reboot," in the Microsoft Knowledge Base.

Command-Line Options for the Hotfix.exe Program

The following table identifies the command-line options that the Hotfix.exe program supports.

Command-line optionDescription
/FForces other applications to close at shutdown.
/NDoes not back up files for removing hotfixes.
/ZDoes not restart the computer after the installation is completed.
/QUses quiet mode; no user interaction is required.
/MUses unattended Setup mode.
/LLists installed hotfixes.

Installing Hotfixes on Computers Running Windows 2000

To install a Windows 2000 hotfix on a single computer, just run the hotfix program on the computer you want to update:

Q######_XXX_YYY_ZZZ_LL.exe

You can create a shared distribution folder on the network for the hotfix if you want to install it on more than one computer. The following procedure describes how to install one or more Windows 2000 hotfixes using this method.

Note

For the following procedure, "E:\" represents the drive of the network or computer where your distribution folder is located.

To install a Windows 2000 hotfix by running the Hotfix.exe program

  1. Connect to the network or computer on which you want to create the distribution folder.
  2. On the network or the computer, create a distribution folder for the hotfix files.

    For example, to create a distribution folder named Hotfix, type the following:

    mkdir E:\Hotfix

  3. Copy the Windows 2000 Hotfix.exe program to the distribution folder that you created in step 2.

    For example, to copy the Windows 2000 Hotfix.exe program to the distribution folder named Hotfix, type the following:

    xcopy C:\Q######_XXX_YYY_ZZZ_LL.exe E:\Hotfix 

  4. To install the hotfix from the shared network distribution folder, run the Q######_XXX_YYY_ZZZ_LL.exe program.

    For example, to install the hotfix from the distribution folder named Hotfix, type the following:

    E:\Hotfix\Q######_XXX_YYY_ZZZ_LL.exe

    The Q######_XXX_YYY_ZZZ_LL.exe file supports the same command-line options as the Hotfix.exe program. You can use command-line options as described in the table preceding this procedure.

  5. To ensure that your hotfixes take effect, restart your computer after you finish installing all of the hotfixes.

Installing Several Hotfixes Together

You can group multiple hotfixes together in a batch file and install them as a unit; this way, you do not need to restart your computer after each hotfix is installed. The hotfix installer provides options you can use when performing this type of installation.

The following code sample is a batch file that installs hotfixes and makes sure that the correct files get replaced after the computer is restarted.

@echo off
setlocal
set PATHTOFIXES=E:\hotfix

%PATHTOFIXES%\Q123456_w2k_sp4_x86.exe /Z /M
%PATHTOFIXES%\Q123321_w2k_sp4_x86.exe /Z /M
%PATHTOFIXES%\Q123789_w2k_sp4_x86.exe /Z /M

If you are installing any hotfixes that were released before SP3, you must include the following line at the end of your batch file to run Qchain.exe after the last hotfix is installed:

%PATHTOFIXES%\qchain.exe

Note

You can download Qchain.exe from article Q296861, "Use Qchain.exe to Install Multiple Hotfixes with Only One Reboot," in the Microsoft Knowledge Base.

Important

To make sure that the hotfixes you installed take effect, restart the computer if the batch file does not automatically restart it for you.



The Combination Installation

Back to Top

The combination installation uses both the update and integrated installation processes to install the service pack with one or more of the following:

This section provides instructions for installing Windows 2000 with hotfixes in unattended Setup mode.

You can perform a combination installation by using either of the following two methods:

Installing Windows 2000 with the Service Pack and Hotfixes (Recommended)

This section explains how to perform a combination installation of Windows 2000 integrated with the service pack and post-service pack hotfixes in a shared distribution folder on a network. You do not need to perform separate installations of Windows 2000, the service pack, or the Windows 2000 hotfixes. Note that if you want to install Windows 2000 with hotfixes, you must use this method.

Important

Preparing for the Combination Installation

Before you run Windows 2000 Setup to deploy the installation of Windows 2000 and the Windows 2000 hotfixes across a network, you must copy the Windows 2000 and Windows 2000 hotfix installation files to a shared distribution folder and complete additional steps, as described in the following procedure.

If you are an original equipment manufacturer (OEM) and you plan to install additional OEM files (for example, device driver, application, or component files) on the destination computers, create a \$1 subfolder within the \$OEM$ subfolder. The \$1 subfolder maps to systemdrive, the destination drive for the Windows 2000 installation.

Note

In the following procedure, "E:\" represents the drive name of the network or computer where your distribution folder is located.

To create and set up the required folders and files

  1. Connect to the network or computer on which you want to create the distribution folder.
  2. Create an i386 distribution folder by typing the following (using the appropriate drive name):

    mkdir E:\i386

  3. Use the command-line utility xcopy to copy the files and subfolders from the Windows 2000 with SP3 integrated installation CD to the E:\i386 folder. For example, if D: is your CD-ROM drive, type the following:

    xcopy /E /I /V D:\i386 E:\i386

  4. Edit E:\i386\dosnet.inf to add svcpack to the [OptionalSrcDirs] section as follows:
    [OptionalSrcDirs]
    uniproc
    svcpack
  5. Create an E:\i386\svcpack folder. For example, to create a \svcpack subfolder within the i386 folder, type the following:

    mkdir E:\i386\svcpack

  6. Copy the hotfix executable program (Q######_XXX_YYY_ZZZ_LL.exe) to the E:\i386\svcpack folder by using the 8.3 naming format (Q######.exe), where ###### represents the actual hotfix number.

    If you are deploying multiple hotfixes, rename all of the hotfix package files.

  7. Expand the hotfix to a unique temporary location. For example, to expand the files to a folder called samplefolder, type the following:

    E:\i386\svcpack\Q###### /X E:\<samplefolder>

  8. Copy the catalog files (.cat) and hotfix binary files (such as .exe, .dll, .sys) as follows:
    1. Copy Q######.cat to the E:\i386\svcpack folder. If you will be deploying multiple hotfixes together, make sure that you copy all catalog files from each of the hotfixes to be deployed. Each hotfix has a unique catalog file that you must copy in the format Q######.cat.
    2. If any binary files exist in multiple packages, keep only the file with the highest version number.
    3. Delete any binary files to be replaced in the i386 folder (usually you can identify these files in the shared folder by the underscore (_) at the end of each file name).
    4. Copy the hotfix binary files and any subfolders for the hotfix to the i386 folder.

      For example, i386\uniproc\* files in the hotfix need to be copied to the i386\uniproc folder of the shared installation folder. There is no need to copy Update.exe, Update.inf, SPmsg.dll, SPcustom.dll, SPuninst.exe, Update.ver, or symbols files.

  9. Delete the E:\i386\Svcpack.inf file.
  10. Create a new Svcpack.inf file at E:\i386\Svcpack.inf, using the following content:
    [Version]
    Signature="$Windows NT$"
    MajorVersion=5
    MinorVersion=0
    BuildNumber=2195
    [SetupData]
    CatalogSubDir="\i386\svcpack"
    [ProductCatalogsToInstall]
    Q######.cat
    [SetupHotfixesToRun]
    Q######.exe /options (the recommended options for hotfixes are /Q /N /Z)

    Important

    If you will be deploying multiple hotfixes together, add an entry for each hotfix under both [ProductCatalogsToInstall] and [SetupHotfixesToRun] (as shown following this paragraph). The following lines are a sample of these sections for an installation in which multiple hotfixes are installed. If you are installing a service pack, you do not need to include details about the service pack because it is included in the installation independently of this process.

[ProductCatalogsToInstall]
Q123456.cat
Q123478.cat
Q123490.cat
[SetupHotfixesToRun]
Q123456.exe /options 
(the recommended options for hotfixes are /Q, /N, and /Z)
Q123478.exe /options 
(the recommended options for hotfixes are /Q, /N, and /Z)
Q123490.exe /options 
(the recommended options for hotfixes are /Q, /N, and /Z)

Deploying the Combination Installation by Using Svcpack.inf

You can deploy the installation of Windows 2000 and the Windows 2000 hotfixes to your users' computers from a shared distribution folder on a network. During the standard installation process, Windows 2000 Setup (Winnt.exe or Winnt32.exe in unattended Setup mode) installs the operating system and applies the hotfixes.

To deploy the installation

  1. Verify that the installation and executable files for Windows 2000 and the Windows 2000 hotfixes exist in your distribution folder.
  2. Customize Windows 2000 Setup, as necessary. For more information about how to do this, see the Winnt32.exe command syntax topic in the Microsoft Windows 2000 Professional Resource Kit.
  3. Run Windows 2000 Setup (Winnt.exe or Winnt32.exe in unattended Setup mode) to deploy the installation of Windows 2000 and the Windows 2000 hotfixes to your users' computers from the shared distribution folder.

Installing Windows 2000 with Hotfixes by Using Cmdlines.txt

This section provides instructions for performing a combination installation with Windows 2000 integrated with hotfixes in a shared network distribution folder. You do not need to perform separate installations of Windows 2000 and the hotfixes.

Important

Preparing for the Combination Installation

Before you run Windows 2000 Setup to install Windows 2000 with hotfixes, you must complete the tasks described in the following procedures.

Creating the Required Folders and Files

Before you begin the combination installation, you must create a distribution folder and subfolders for the Windows 2000 and hotfix installation files, and then you must create an Unattend.txt answer file (for an unattended installation only), as described in the following procedures.

Note

For the following procedure, "E:\" represents the drive of the network or computer where your distribution folder is.

To create the required folders

  1. Connect to the network or computer on which you want to create the distribution folder.
  2. In the shared network distribution folder, create an \i386 distribution folder.

    For example, to create an \i386 distribution folder, type the following:

    mkdir E:\i386

  3. In the \i386 folder you created in step 2, create an \$OEM$ subfolder.

    For example, to create an \$OEM$ subfolder in the \i386 folder, type the following:

    mkdir E:\i386\$OEM$

    The \$OEM$ subfolder contains any additional folders that are necessary to satisfy the Microsoft OEM requirements and your own preinstallation needs. For more information about these additional folders, see the Microsoft Windows 2000 Server Resource Kit Deployment Planning Guide.

  4. If you plan to install any additional files (for example, device driver, application, or component files) on the users' computers, create a \$1 subfolder in the \$OEM$ subfolder you created in step 3.

    For example, to create an \$1 subfolder in the \$OEM$ subfolder, type the following:

    mkdir E:\i386\$OEM$\$1

    The \$1 subfolder maps to %systemdrive%, the destination drive for the Windows 2000 installation.

Note

The $OEM$ and distribution folders are deleted from users' computers automatically after Windows 2000 Setup is completed.

To create an Unattend.txt answer file

  1. To install the hotfixes, you must add a command line to the Unattend.txt file so that Setup recognizes the folders and files in the \i386\$OEM$ folder.
  2. Using the Setup Manager tool, create an Unattend.txt file that contains the following command line so that Setup recognizes the hotfixes:
    [Unattended]
    OemPreinstall = Yes

    For information about using Setup Manager to create an Unattend.txt answer file, see the Microsoft Windows 2000 Professional Resource Kit or the Microsoft Windows 2000 Server Resource Kit. For information about answer file parameters and settings, see the Microsoft Windows 2000 Guide to Unattended Setup (Unattend.doc), which is located in the \Support\Tools folder on the Service Pack 3 CD.

  3. To install the Windows 2000 hotfixes during Windows 2000 Setup, you must add the following command line to the Cmdlines.txt file for each hotfix:
    [Commands]
    "Q######.exe /N /Q /Z"

    where Q###### = the hotfix number (for example, Q123456).

    For example, to install the Q123456.exe hotfix, add the following command line to the [Commands] section in the Cmdlines.txt file:

    [Commands]
    "Q123456.exe /N /Q /Z"
  4. To install several hotfixes together, group them under the [Commands] section. At the end, include the Qchain.exe file if any of your hotfixes predate SP3; this will ensure that the correct versions of the files get replaced during installation. Even if some of the files to be replaced are currently being used by the computer, Qchain.exe is able to replace them.

    For example, to install the Q123456.exe, Q123478.exe, and Q123490.exe hotfixes, add the following command line to the [Commands] section in the Cmdlines.txt file:

    [Commands]
    "Q123456.exe -n -q -z"
    "Q123478.exe -n -q -z"
    "Q123490.exe -n -q -z"
    "QChain.exe"

    For information about using Setup Manager to create a Cmdlines.txt file, see the Microsoft Windows 2000 Professional Resource Kit or the Microsoft Windows 2000 Server Resource Kit.

Copying Installation Files to the Distribution Folder

You must copy all of the files needed for the installation to your distribution folder. The distribution folder should contain the installation and executable files for Windows 2000 and the Windows 2000 hotfixes, in addition to any device driver files and other files that you want to install.

To copy the installation files to the distribution folder

  1. Copy the contents of \i386 on the Windows 2000 CD to the \i386 folder in your shared network distribution folder.
  2. Copy the following files to the \i386\$OEM$ subfolder in your shared network distribution folder:

    For information about files contained in the \i386\$OEM$ subfolder, see the Microsoft Windows 2000 Server Resource Kit Deployment Planning Guide.

  3. Copy any folders that contain additional device driver, application, or component files that you want to install on the system drive to the \i386\$OEM$\$1 subfolder in your shared network distribution folder.

Deploying the Combination Installation by Using Cmdlines.txt

You can deploy the combination installation of Windows 2000 and the hotfixes to your users' computers as described in Deploying the Combination Installation by Using Svcpack.inf earlier in this document.



Removing Windows 2000 Hotfixes

Back to Top

You can remove a Windows 2000 hotfix by using Add/Remove Programs in Control Panel.

If you install multiple hotfixes that replace the same files and you want to return your computer to its original state, you must remove the most recently installed hotfix first. For example, assume that HotfixA and HotfixB replace the same file and that you installed HotfixA before you installed HotfixB. If you want to return your computer to its state prior to the installation of HotfixA, you must remove HotfixB before you remove HotfixA.

To remove a Windows 2000 hotfix

  1. Click Start, point to Settings, and then click Control Panel.
  2. Double-click Add/Remove Programs, click Q######, and then click Change/Remove.
  3. Follow the instructions that appear on your screen.

    Note

    You cannot remove hotfixes that were installed by means of the combination installation method.



Copyright

Back to Top

Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation.

Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.

© 2002 Microsoft Corporation. All rights reserved.

Microsoft, Windows, and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.

This product contains graphics filter software; this software is based in part on the work of the Independent JPEG Group.

The names of actual companies and products mentioned herein may be the trademarks of their respective owners.