Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

An Advanced Windows Hotfix Manager

0.00/5 (No votes)
3 Feb 2002 1  
An advanced utility that scans computers for missing hotfixes, and helps you download and install them.

Introduction

In September, 2001, Microsoft released a tool called Hfnetchk that checks NT 4, Windows 2000, and Windows XP systems and generates a report of which hotfixes need to be installed. While this is a great idea, the tool is a console-mode program and only prints out a list of Knowledge Base article numbers; it doesn't list URLs or take you to the Knowledge Base articles about the hotfixes.

The program presented in this article is based on my article "A GUI Front-End for Microsoft's Hotfix Checker Utility". This new version of Windows Hotfix Checker (WHC) has several major improvements:

  • The interface is now a wizard, instead of a cluttered dialog.
  • This version uses the latest release of Hfnetchk, version 3.2.
  • This version supports downloading hotfixes, as well as installing them on the local computer,.

System requirements: NT 4 with IE 5 or later, Windows 2000, or Windows XP. The reporting feature requires IE 5.5 or later, but everything else will work with IE 5.

Overview of WHC's Features

First and foremost, WHC is a front-end for Microsoft's hotfix checking program, Hfnetchk. (See the Knowledge Base article on Hfnetchk for more details.) WHC runs Hfnetchk, captures its output, and shows a report on hotfixes that need to be installed. WHC can scan the local computer, as well as remote computers on which you have administrator privileges.

Once you've scanned for necessary hotfixes, WHC can also download them from Microsoft. Note that some hotfixes are not directly downloadable, so you will need to visit Microsoft's site for download instructions. However, finding the right page is simple - WHC's detailed hotfix report includes hyperlinks to the Microsoft security bulletin and Knowledge Base article for each hotfix.

Finally, once you have downloaded the necessary hotfix installers, WHC can run them for you. OS hotfixes are often chainable, meaning you can install several at once without having to reboot after each hotfix is installed. WHC supports this as well, using Microsoft's Qchain utility.

Scanning for Hotfixes

Run WHC, and click Next from the introduction page. You'll see this screen:

 [External programs page - 37K]

If you haven't downloaded Hfnetchk, click the Download Hfnetchk hyperlink to go to the download page at Microsoft's web site. Once you've installed it, enter the path to Hfnetchk.exe and click Next.

The next screen asks whether you want to scan for needed hotfixes, or run hotfix installers. Click Scan computers for necessary hotfixes and click Next. The next panel is where you tell WHC where Hfnetchk's data file is.

 [XML file location page - 38K]

The data file is an XML file that contains a list of all available hotfixes, and is used by Hfnetchk during its scanning. If you have not run Hfnetchk 3.2 before, click Download a new data file and click Next. If there is already a data file in the same directory as Hfnetchk, WHC will find it and fill in its path for you. If you have not downloaded the data file in a few days, it's a good idea to download a new copy, since Microsoft is continually updating the file with new hotfixes.

The next panel lets you choose which computers to scan, and set some Hfnetchk options.

 [Hfnetchk options page - 38K]

Hfnetchk supports scanning just the local computer, a remote computer, or an entire NT domain. On Windows 2000 and later, it can also scan an IP address, or a range of IP addresses. The remaining options customize Hfnetchk's reporting behavior. For more details about customizing Hfnetchk, click the Hfnetchk Knowledge Base article hyperlink. Click Next to begin the scan.

Once Hfnetchk is finished, WHC will show a list of missing hotfixes that Hfnetchk reported.

 [List of missing hotfixes - 33K]

This list shows a brief description of each hotfix, along with the product it applies to, and the computer where that product is installed. For a more detailed report, which includes links to Microsoft's security bulletins and Knowledge Base articles, click the More Details button.

Downloading Hotfix Installers

After running a scan as described above, click Next. Click Download hotfix installers, then click Next. If any hotfix installers are directly downloadable, you'll see them in a list, as pictured below:

 [List of hotfixes to download - 33K]

Check the box next to the hotfix installers you want to download, and enter a directory to store the files in. Click Next to begin downloading.

Note that not all hotfixes are directly downloadable. The XML data file lists download locations for each hotfix, but often, the locations listed are web pages, not direct links to EXEs. WHC can download only those hotfixes which are listed as EXEs in the XML file. For the others, you'll need to visit the Microsoft web pages and follow the download instructions there.

When you click Next, WHC begins downloading the hotfix installers you selected and shows a progress indicator:

 [Download progress - 37K]

Installing Hotfixes

WHC can also run hotfix installers for you. WHC offers to do this after you download hotfix installers as described above, but you can also choose to install hotfixes from the second wizard panel. WHC requires another Microsoft tool call Qchain, which is used when installing multiple hotfixes at once.

On the Downloading external programs panel, there is an edit box where you enter the path to Qchain. If you don't have Qchain, click the Download Qchain hyperlink to go to the Microsoft web page on Qchain. Once you've installed it, enter its path as shown below:

 [External programs page - 38K]

Click Next to go to the Select task to carry out panel. Click Install hotfixes on this computer, then click Next. You will see the Select hotfixes to install panel:

 [Hotfixes to install - 36K]

Click Add Files and select hotfix installers to add to the list. You can also click Search Folder to have WHC find hotfix installers in a particular directory. WHC looks for EXE files staring with Q, but excluding qchain.exe.

Note: It's very important to verify that the hotfixes you add to the list are chainable. Most operating system hotfixes are chainable, and their names follow the pattern of Qnnnnnn_W2K_SP3_x86_en.exe where nnnnnn is the KB article number. Normally, you are required to restart the computer after applying a hotfix, but chainable hotfixes do not have this requirement. Check the Knowledge Base article for each hotfix if you are unsure if a hotfix is chainable.

Click Next, and WHC will run the selected installers. It is normal to see some progress dialogs as the installers do their tasks. Once all installers have been run, WHC runs Qchain to finish up the chaining process. It then goes to the finishing wizard page. Click Finish, then restart your computer to complete the hotfix installation.

Links

Find out more about hotfixes in these Knowledge Base articles:

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here