Microsoft Windows 2000 Hotfix Installation and Deployment Guide (HFDeploy.htm) Microsoft Windows 2000

Microsoft Windows 2000
Hotfix Installation and Deployment Guide (HFDeploy.htm)


About This Guide

Organization of This Guide

What's New

What Is a Hotfix?

The Standalone Installation

Standalone Installation Methods

Installing Hotfixes on Computers Running Windows 2000

The Combination Installation

Installing Windows 2000 with the Service Pack and Hotfixes

Removing Windows 2000 Hotfixes

Copyright

About This Guide

Back to Top

This guide provides instructions for administrators installing hotfixes for Microsoft® 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 installing Windows 2000 hotfixes on multiple computers in a small business or corporate environment. You can install hotfixes either alone (a standalone installation), or in combination with Windows 2000, a service pack, or both.

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

Organization of This Guide

This guide includes the following main sections:

What's New

Back to Top

This section provides information about some of the ways in which SP4 differs from previous service packs.

Debug symbols are not included in hotfix packages

Prior to SP4, hotfix packages included symbols for diagnosing Windows 2000 problems. To reduce the download time for hotfixes, symbols are no longer included. For more information about this change, and to find out how to download symbols, see article 814411, "Hotfix Packages Do Not Include Debug Symbol Files," in the Microsoft Knowledge Base.

Qchain.exe functionality is included with hotfixes

Windows 2000 supports hotfix chaining during standalone installations. All hotfixes released since SP3 have Qchain.exe functionality built in so you can install multiple hotfixes without restarting the computer after each hotfix is installed. If multiple hotfixes replace the same file, Qchain.exe ensures that the correct version is retained. If you install multiple hotfixes, be sure to use the /Z option described in Command-Line Options for the Hotfix Package later in this guide.

What is a Hotfix?

Back to Top

A hotfix is a file or a collection of files that you can apply to Windows 2000 to correct a specific problem. Hotfixes are packaged in an executable (.exe) file, which is a self-installing format. When you install a hotfix, files are backed up automatically so that you can remove the hotfix later.

The installation process also copies files to specific folders and updates registry settings. Windows 2000 hotfix packages are named according to the following convention:

Windows2000-KB######-x86-LLL.exe

where:

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 also reinstall any hotfixes that apply to 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 Standalone Installation

Back to Top

During a standalone installation, 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 hotfixes by running the hotfix package, 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 /U or /Q option), Setup does not continue and no message appears.

If the language of the hotfixes does not match the language you have set up for Windows 2000, Setup does not continue. 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\
KB######

HKEY_LOCAL_MACHINE \Software\Microsoft\Updates\Windows 2000\SP5\KB######

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

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

Standalone Installation Methods

There are several ways you can perform a standalone installation. These include running the Windows2000-KB######-x86-LLL.exe program manually with a combination of installation options, using Microsoft Systems Management Server (SMS), or using Microsoft 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 standalone installation procedures in this guide 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.

Command-Line Options for the Hotfix Package

The following table identifies the command-line options that the hotfix package supports.

Command-line optionDescription
/FForces other applications to close after installation is completed and before the computer restarts.
/NDoes not back up files for removing hotfixes.
/ZDoes not restart the computer after the installation is completed.
/QUses quiet mode; shows no user interface.
/UUses unattended Setup mode. Requires no user interaction and shows only critical errors.
/LLists installed hotfixes.

Installing Hotfixes on Computers Running Windows 2000

To install a single hotfix on a single computer

To install a Windows 2000 hotfix on a single computer, run the hotfix package on the computer that you want to update. The hotfix package is formatted as follows:

Windows2000-KB######-x86-LLL.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

In the following procedure, Drive represents the drive of the network or computer where your distribution folder is located.

To install a hotfix by running a hotfix package from a shared distribution folder

  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 Drive:\Hotfix

  3. Navigate to the folder you want, right-click the folder, and then click Properties.
  4. Click the Sharing tab, and then click Share This Folder.
  5. In Share Name, enter a name for the folder.
  6. Click Permissions, and then add permissions that allow users to install their hotfixes from this folder.
  7. If you are using an NTFS file system partition, click the Security tab, confirm that the permissions listed there do not conflict with those on the Sharing tab, and then click OK.
  8. Copy the Windows 2000 Hotfix package to the distribution folder that you created in step 2.
  9. To install the hotfix from the shared network distribution folder, run:

    Windows2000-KB######-x86-LLL.exe

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

    \\servername\sharename\Hotfix\Windows2000-KB######-x86-LLL.exe

    Use the command-line options described in the table provided in the preceding section.

  10. 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 prevents you from having to restart your computer after each hotfix is installed.

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

@echo off
setlocal
set PATHTOFIXES=Drive:\hotfix

%PATHTOFIXES%\Windows2000-KB######-x86-LLL.exe /Z /U
%PATHTOFIXES%\Windows2000-KB######-x86-LLL.exe /Z /U
%PATHTOFIXES%\Windows2000-KB######-x86-LLL.exe /Z /U

Important

To ensure 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 installs hotfixes and one or more of the following:

This section provides instructions you can use to perform a combination installation that includes Windows 2000 and hotfixes in unattended Setup mode.

You can perform a combination installation by including the components that you want to install with the hotfixes as entries in the Svcpack.inf file. You can also choose to install SP4 at the same time.

Installing Windows 2000 with the Service Pack and Hotfixes

This section explains how to perform a combination installation of Windows 2000 integrated with the service pack and post-service pack hotfixes. It also explains how to copy to a shared distribution folder on your network each of the elements to be installed. This is part of preparing for a combination installation.

The combination installation makes it unnecessary for you to perform separate installations of Windows 2000, the service pack, or the Windows 2000 hotfixes.

Important

Preparing for the Combination Installation

Before you run Windows 2000 Setup to deploy the installation of Windows 2000, SP4, and hotfixes across a network, you must copy the installation files for Windows 2000 and the hotfixes to a shared distribution folder. You must then complete the additional steps described in the procedure, To create and set up the required folders and files, later in this section.

If you are an 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 combination installation.

Note

In the following procedure, Drive 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. In the shared folder on the network, create a distribution folder for the Windows 2000 installation files. For example, to create a distribution folder named W2000, type the following:

    mkdir Drive:\W2000\

    Ensure that only the system administrator has full access to this folder. Other users should have only Read and Execute permissions.

    To verify that you have assigned the appropriate permissions, use steps 3 through 7 in the preceding procedure, "To install a hotfix by running a hotfix package from a shared distribution folder."

  3. Insert your Windows 2000 product CD into the CD-ROM drive, and then, using the following syntax, copy the contents of the CD to the distribution folder that you created in step 2:

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

  4. Remove the Windows 2000 product CD from the CD-ROM drive, and then, to perform a combined installation that includes SP4, insert the service pack CD. Otherwise, to install hotfixes with Windows 2000 only, skip to step 7.
  5. Apply the service pack source files to the Windows 2000 Installation files located in the folder named W2000\i386 by typing the following:
  6. W2ksp4.exe /S:Drive:\W2000

    Note

    For a list of command-line options you can use with this command, see "Command-Line Options for Update.exe and W2ksp4," in Microsoft Windows 2000 Service Pack 4 Installation and Deployment Guide (SPDeploy.htm).

  7. Edit Drive:\i386\dosnet.inf to add svcpack to the [OptionalSrcDirs] section as follows:
    [OptionalSrcDirs]
    uniproc
    svcpack
  8. Create a Drive:\i386\svcpack subfolder.
  9. Copy the hotfix package (Windows2000-KB######-x86-LLL.exe ) to the Drive:\i386\svcpack folder by using the 8.3 naming format (KB######.exe), where ###### represents the actual hotfix number.

    If you are deploying multiple hotfixes, copy and rename all of the hotfix executable files.

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

    Drive:\i386\svcpack\KB###### /X:Drive:\samplefolder

  11. From samplefolder, for each hotfix, copy a catalog file (KB######.cat) and hotfix binary files (such as .exe, .dll, or .sys) as follows:
    1. Copy KB######.cat to the Drive:\i386\svcpack folder. If you are deploying multiple hotfixes together, copy the catalog file from each of the hotfixes to be deployed. Each hotfix has a unique catalog file that you must copy in the format KB######.cat. Do not copy empty.cat.
    2. If the same binary file exists in multiple hotfix packages, keep only the file with the highest version number.
    3. For each binary file included in the package, determine whether the same file exists in the i386 folder. (You can usually identify these files in the shared folder by the underscore (_) at the end of each file name.) Delete these binary files that will be replaced in the i386 folder.
    4. Copy the hotfix binary files and any subfolders for the hotfix to the i386 folder.

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

  12. For each file copied in step 10 (except for KB######.cat), check Dosnet.inf to determine whether each hotfix binary file name is listed under the [Files] section. All files listed under [Files] are preceded by "d1,". This appears as follows:

    d1,Filename

    If a hotfix binary file name is not listed for each hotfix under the [Files] section, add an entry using the syntax:

    d1,Filename.

    For example, if a hotfix contains Win32k.sys, because Win32k.sys is not listed in Dosnet.inf, "d1,win32k.sys" must be added under the [Files] section of Dosnet.inf. This ensures that the hotfix version of Win32k.sys will be copied during Windows 2000 Setup.

  13. Delete the Drive:\i386\Svcpack.in_ file.
  14. Create a new Svcpack.inf file in Drive:\i386 by using the applicable following content, depending on whether you want to deploy a single hotfix or multiple hotfixes. (Replace ###### with the numbers for your hotfix .cat file).

To deploy a single hotfix, set up your file as follows:

[Version]
Signature="$Windows NT$"

MajorVersion=5 MinorVersion=0 BuildNumber=2195 [SetupData] CatalogSubDir="\i386\svcpack"
[ProductCatalogsToInstall] KB######.cat [SetupHotfixesToRun] KB######.exe /options

The recommended options for hotfixes are /Q, /N, and /Z. These options prevent messages from being displayed on computers to which you are deploying the hotfixes. This makes the hotfix installation invisible to user.

To deploy multiple hotfixes, set up your file as follows:

If you are deploying multiple hotfixes simultaneously, add an entry for each hotfix under both [ProductCatalogsToInstall] and [SetupHotfixesToRun] (as shown in the example that follows).

The following lines illustrate how these sections they would appear 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, independent of this process.

[ProductCatalogsToInstall]
KB123456.cat
KB123478.cat
KB123490.cat
[SetupHotfixesToRun]
KB123456.exe /options 
KB123478.exe /options 
KB123490.exe /options 

The recommended options for hotfixes are /Q, /N, and /Z.

Using Svcpack.inf to Deploy the Combination Installation

You can deploy Windows 2000 and the hotfixes to multiple 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. Customize Windows 2000 Setup, as necessary. For more information about how to do this, you can view Help by entering the following command from the deployment folder:

    \i386\winnt32.exe /?

    For more detailed information, see the Winnt32.exe command syntax topic in the Microsoft Windows 2000 Professional Resource Kit.

  2. Run Windows 2000 Setup (Winnt.exe or Winnt32.exe in unattended Setup mode) to deploy the installation of Windows 2000 and the hotfixes to multiple computers from the shared distribution folder.

Removing Windows 2000 Hotfixes

Back to Top

You can use Add/Remove Programs in Control Panel to remove a Windows 2000 hotfix. You cannot remove hotfixes that were installed as part of a combination installation, however, unless you reinstall Windows 2000.

If you install multiple hotfixes that each replace the same files, and you want to return your computer to its original state, you must remove the most recently installed hotfix first, the next most recently installed hotfix second, and so on.

For example, assume that you installed HotfixA, then HotfixB, and then HotfixC, and they each replace the same file. To return your computer to the state it was in before you installed HotfixA, you must remove HotfixC first, followed by HotfixB, and then HotfixA. If you try to uninstall the hotfixes in the wrong order, a warning appears listing all hotfixes and programs installed since you installed the hotfix that you are trying to remove. If you proceed, these hotfixes and programs might not work correctly.

To remove a Windows 2000 hotfix

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

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.

© 2003 Microsoft Corporation. All rights reserved.

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

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

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