Article ID: 296861 - Last Review: December 5, 2007 - Revision: 15.9 How to install multiple Windows updates or hotfixes with only one rebootThis article was previously published under Q296861 On This PageSUMMARY This article describes how to install multiple Windows
product updates (for example, critical updates, security patches, or hotfixes)
that use Hotfix.exe (Microsoft Windows NT 4.0) or Update.exe (Microsoft Windows
2000, Microsoft Windows XP, or Microsoft Windows Server 2003) with only one
restart. This article is intended for administrators and IT professionals. You
can install Windows product updates that use Hotfix.exe or Update.exe either
alone or in combination with Windows (with or without a service pack).
Note The procedure that is described in this article does not work for product updates that do not use Hotfix.exe or Update.exe as the installation program. For example, Internet Explorer updates for Windows NT 4.0, Windows 2000, and Windows XP use an INF-based installation instead of Update.exe. As a result, you cannot use this procedure to install multiple Microsoft Internet Explorer updates with only one restart on Windows NT 4.0, Windows 2000, or Windows XP. Because Internet Explorer updates for Windows Server 2003 use Update.exe as the installation program, you can use this procedure to install them. For additional information about these topics, see the following Microsoft Web sites: Windows 2000 Microsoft Windows 2000
Hotfix Installation and Deployment Guide Windows XPhttp://technet.microsoft.com/en-us/library/cc750542.aspx (http://technet.microsoft.com/en-us/library/cc750542.aspx) The Guide for Installing and Deploying Updates for Microsoft Windows XP Service Pack 2 Windows Server 2003 and Windows XP Professional x64 Editionhttp://technet.microsoft.com/en-us/library/bb457071.aspx (http://technet.microsoft.com/en-us/library/bb457071.aspx) Guide for Installing
and Deploying Updates for
Microsoft Windows Server 2003
and Windows XP 64-Bit Edition Version 2003 Windows Server 2003 Service Pack 1http://technet.microsoft.com/en-us/library/cc700814.aspx (http://technet.microsoft.com/en-us/library/cc700814.aspx) Microsoft Windows Server 2003 Service Pack 1 Installing and Deploying Updates http://technet2.microsoft.com/windowsserver/en/library/0e02a953-aca7-4dad-b3e2-c94ea72bbc3d1033.mspx (http://technet2.microsoft.com/windowsserver/en/library/0e02a953-aca7-4dad-b3e2-c94ea72bbc3d1033.mspx) MORE INFORMATIONA Windows product update (for example, a critical update, a
security patch, or a hotfix) is an executable (.exe) file that contains one or
more system files that you can apply to Windows to correct a specific problem.
Microsoft Product Support Services distributes hotfixes to customers who are
severely affected by a specific problem. Critical updates and security patches
are updates that Microsoft recommends for all customers. You can obtain
critical updates and security patches from the Windows Update Web site,
the Microsoft Update Web site, the Microsoft Download
Center, or from other Microsoft Web sites. Windows XP x64 Edition updates and Windows Server 2003 updates or Windows XP and Windows 2000 updates that were created after December 2002Note To determine when an update was created, view the Modified date on the Update.exe or Hotfix.exe installation program in the update package.To install a Windows product update on a single computer, run the product update program on the computer that you want to update. To install multiple product updates without restarting the computer between each installation, use the /z switch. Command-line options for the Update.exe programThe following table identifies the command-line options (or switches) that the Update.exe program supports:Switch Description ------ ----------- /f Forces other programs to close at shutdown. /n Does not back up files for removing hotfixes. /z Does not restart the computer after the installation is completed. /q Uses quiet mode; no user interaction is required. /m Uses unattended Setup mode (Windows 2000). /u Uses unattended Setup mode (Windows XP). /l Lists installed hotfixes. 815062
(http://support.microsoft.com/kb/815062/
)
The correct file is not installed when you chain multiple hotfixes
All Windows NT 4.0 updates or Windows XP and Windows 2000 updates that were created before December 2002Note To determine when a product update was created, check the Modified date on the Update.exe or Hotfix.exe installation program in the update package.Microsoft has released a command-line tool that is named QChain.exe. With QChain.exe, system administrators can chain updates together. When you chain updates, you install multiple updates without restarting the computer between each installation. Without this tool, the only supported method is to restart the computer after each update installation. The QChain.exe tool has the following benefits:
815062
(http://support.microsoft.com/kb/815062/
)
The correct file is not installed when you chain multiple hotfixes
Chaining update installations without QChain.exe is not safeWhen you install updates, if a file is locked or in use, it cannot be replaced. As a result, the file is placed in the Pending File Rename queue and is replaced after the computer restarts. The problem occurs in the following scenario:
If previously chained updates are installed without restartingAlthough this scenario is rare, it is good practice to verify that your computer has all the fixes that you believe are installed. To verify this, use the Qfecheck.exe tool. For more information about Qfecheck.exe, click the following article number to view the article in the Microsoft Knowledge Base:282784
(http://support.microsoft.com/kb/282784/
)
Qfecheck.exe verifies the installation of Windows 2000 and Windows XP hotfixes
QChain.exe cleans the Pending File Rename
Operations key in the registry to make sure that only the latest version of a
file is installed after the computer is restarted. To install multiple updates with only one restart
How to obtain QChain.exeQChain.exe functionality is included in all Windows XP and Windows 2000 updates that were released since May 18, 2001, but an issue exists in updates that were released before December 2002 that may result in the wrong binary being placed on your computer in some circumstances. In March 2003, Microsoft released an updated version of QChain.exe to resolve this issue. For more information about this issue or to obtain the updated Qchain.exe tool, click the following article number to view the article in the Microsoft Knowledge Base:815062
(http://support.microsoft.com/kb/815062/
)
The correct file is not installed when you chain multiple hotfixes
The QChain.exe Command Syntax
qchain [logfilename]
The optional [logfilename] parameter
creates a file with a before and after snapshot of the Pending File Rename
Operations key. Sample QChain.exe output
---- Old Information In The Registry ------ Source:C:\WINNT\inf\acpi.inf Version: 5.0.2183.1 Destination:d:\ntsust\testregchech\1394.inf Version: 5.0.2183.1 Source:C:\WINNT\inf\adm_mult.inf Version: 5.0.2184.1 Destination:d:\ntsust\testregchech\1394.inf Version: 5.0.2183.1 Source:C:\WINNT\inf\banshee.inf Version: 5.0.2080.1 Destination:d:\ntsust\testregchech\1394.inf Version: 5.0.2183.1 ---- New Information In The Registry ------ Source:C:\WINNT\inf\adm_mult.inf Version: 5.0.2184.1 Destination:d:\ntsust\testregchech\1394.inf Version: 5.0.2183.1 Limitations of QChain.exeAlthough QChain works with most Windows NT 4.0 and Windows 2000 updates, QChain.exe may not work with updates that contain binary files that are listed in the following registry key:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session
Manager\KnownDLLs Binary files (binaries) that are listed in this registry key are
loaded in memory at startup. When the update installer calls the GetFileVersionInfo function on a binary from this list, update installer refers to
the binary that is already loaded instead of the binary that is actually
present in the target location. Because the binaries that are listed in the KnownDLLs registry key load into memory at startup, the update installer must replace the target binary with the fixed binary before the computer restarts. Therefore, the update installer does not create a Pending File Rename Operation to replace the binary at restart. Instead, the update moves the current binary to a temporary location, puts the fixed binary where the current binary was, and then creates a Pending File Rename Operation to delete the current binary when the computer restarts. QChain affects only Pending File Rename Operations that perform binary replacement operations. It does not do anything with Pending File Rename Operations that perform delete operations. All Windows NT 4.0 updates and all Windows 2000 updates that are earlier than SP2 use GetFileVersionInfo to identify the version of a file. If you install two or more Windows NT 4.0 updates or pre-SP2 Windows 2000 updates, and the updates contain overlapping KnownDLLs, the use of QChain to chain the installation of those updates does not make sure that the latest-versioned fix is installed. The following scenario shows why QChain may not put the correct binary on the system:
If you replay the previous scenario, and use post-SP2 Windows 2000 updates, the hotfix in package B maps package A's Kernel32.dll and recognizes version 3. Version 3 is later than package B's own Kernel32.dll version 2. Therefore, package B does not replace the Kernel32.dll that is on the system, and package A's Kernel32.dll version 3 is the version that the computer correctly uses after the computer restarts.
| Article Translations
|

Back to the top
