Microsoft Windows XP

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 XP

The Combination Installation

Installing Windows XP with the Service Pack and Hotfixes

Removing Windows XP Hotfixes

Copyright



About This Guide

Back to Top

This guide provides instructions for administrators installing hotfixes for Microsoft® Windows® XP Home Edition, Windows® XP Professional, and Windows® XP 64-Bit Edition. This guide includes technical details, procedures, and recommendations for successfully installing Windows XP hotfixes on multiple computers in a small business or corporate environment. Note that you can install hotfixes either alone or in combination with Windows XP (with or without a service pack).

This guide assumes a working knowledge of Windows XP and hotfix installations. Although some basic operating system information is included in the document, this is not a replacement for either the Windows XP 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 XP 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:\WINDOWS. If you upgraded your computer to Windows XP from another version of Windows, systemroot might be 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 XP and Service Pack 1).



What Is a Hotfix?

Back to Top

A hotfix is a file or collection of files that you can apply to Windows XP to correct a specific problem. A hotfix is provided as a program (.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 XP hotfix programs are named according to the following convention:

Note

Examples in this document that can apply to both of the 32-bit versions and the 64-bit Edition follow the 32-bit versions format.

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 example, if you remove a component and later reinstall it, you must reinstall any hotfixes that apply for that component. In addition, if you add further components to your computer that require this hotfix, you must install the hotfix again. 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 XP. When you run the hotfix program, 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 XP runs with an updated file set.

You can install the hotfixes by running the Update.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 /U 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 XP, 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
\Windows NT\CurrentVersion\Hotfix\Q######

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\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 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 Update.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 XP.

Using Qchain.exe

Windows XP SP1 and all post-SP1 hotfixes have Qchain.exe functionality built in. You can install SP1, and then install any number of post-SP1 hotfixes without having to restart the computer in between.

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

Command-Line Options for the Update.exe Program

The following table identifies the command-line options that the Update.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.
/UUses unattended Setup mode.
/LLists installed hotfixes.

Installing Hotfixes on Computers Running Windows XP

To install a Windows XP hotfix on a single computer, run the hotfix program on the computer you want to update: Q######_XXX_YYY_ZZZ_LLL.exe

You can create a 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 XP 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 XP hotfix by running the Update.exe program

  1. Connect to the network or computer on which you want to create the distribution folder.
  2. In the shared network distribution folder, 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 XP Update.exe program to the distribution folder that you created in step 2.

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

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

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

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

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

    The Q######_XXX_YYY_ZZZ_LLL.exe file supports the same command-line options as the Update.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_Wxp_sp2_x86.exe /Z /Q
%PATHTOFIXES%\Q123321_Wxp_sp2_x86.exe /Z /Q
%PATHTOFIXES%\Q123789_Wxp_sp2_x86.exe /Z /Q

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 XP with hotfixes in unattended Setup mode.

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

Installing Windows XP with the Service Pack and Hotfixes

This section explains how to perform a combination installation of Windows XP 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 XP, the service pack, or the Windows XP hotfixes. Note that if you want to install Windows XP with hotfixes, you must use this method.

Important

This process installs the Windows XP hotfixes during Windows XP Setup.

Preparing for the Combination Installation

Before you run Windows XP Setup to deploy the installation of Windows XP and the Windows XP hotfixes across a network, you must copy the Windows XP and Windows XP 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 XP installation.

Follow the procedure for either of the 32-bit versions of Windows XP or for the Windows XP 64-Bit Edition.

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 for 32-bit versions of Windows XP

  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 xcopy to copy the files and subfolders from the Windows XP with SP1 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. Open E:\i386\dosnet.inf to add the [OptionalSrcDirs] section with the entry svcpack as follows:
    [OptionalSrcDirs]
    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 program file (Q######_XXX_YYY_ZZZ_LLL.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 program files according to this naming format.

  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######.exe /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.in_ file.
  10. Create a new Svcpack.inf file at E:\i386\Svcpack.inf, using the following content:
    [Version]
    Signature="$Windows NT$"MajorVersion=5
    MinorVersion=1
    BuildNumber=2600
    [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 they are included in the installation by another process.

    [ProductCatalogsToInstall]
    Q123456.cat
    Q123478.cat
    Q123490.cat
    [SetupHotfixesToRun]
    Q123456.exe /options 
    Q123478.exe /options 
    Q123490.exe /options 

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

To create and set up the required folders and files for the Windows XP 64-Bit Edition

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

    mkdir E:\ia64

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

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

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

    mkdir E:\ia64\svcpack

  6. Copy the hotfix program file (Q######_XXXX_YYY_ZZZZ_LLL.exe) to the E:\ia64\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 according to this naming format.

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

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

  8. Copy the catalog files (.cat) and hotfix binary files (such as .exe, .dll, and .sys) as follows:
    1. Copy Q######.cat to the E:\ia64\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 ia64 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 ia64 folder.

      For example, ia64\uniproc\* files in the hotfix need to be copied to the ia64\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:\ia64\Svcpack.in_ file.
  10. Create a new Svcpack.inf file at E:\ia64\Svcpack.inf, using the following content:
    [Version] 
    Signature="$Windows NT$"
    MajorVersion=5
    MinorVersion=1
    BuildNumber=2600
    [SetupData]
    CatalogSubDir="\ia64\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 they are included in the installation by another process.

[ProductCatalogsToInstall]

Q123456.cat

Q123478.cat

Q123490.cat

[SetupHotfixesToRun]

Q123456.exe /options

Q123478.exe /options

Q123490.exe /options

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

Deploying the Combination Installation

You can deploy the installation of Windows XP and the Windows XP hotfixes to multiple computers from a shared distribution folder on a network. During the standard installation process, Windows XP Setup installs the operating system and applies the hotfixes.

For further information about the following procedure, see the Microsoft Windows Corporate Deployment Tools User's Guide (deploy.chm) included in Deploy.cab in the \Support\Tools folder on your SP1 CD.

To deploy the installation

  1. Verify that the installation and executable files for Windows XP and the Windows XP hotfixes exist in your distribution folder.
  2. Customize Windows XP Setup, as necessary. For more information about customizing Windows XP Setup, see the Winnt32.exe command syntax topic in the Microsoft Windows XP Professional Resource Kit Documentation, which you will find on the Microsoft Windows Resource Kits Web site.
  3. Run Windows XP Setup to deploy the installation of Windows XP and the Windows XP hotfixes to multiple computers from the shared distribution folder.


Removing Windows XP Hotfixes

Back to Top

You can remove a Windows XP hotfix by using Add or 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 XP hotfix

  1. Click Start, point to Settings, and then click Control Panel.
  2. Click Add or Remove Programs, click Q######, and then click Change or 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, MS-DOS, 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.