Click here to Skip to main content
16,018,418 members
Articles / Desktop Programming / WTL
Article

An Advanced Windows Hotfix Manager

Rate me:
Please Sign up or sign in to vote.
4.89/5 (8 votes)
3 Feb 20026 min read 414.3K   1.6K   42   70
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


Written By
Software Developer (Senior) VMware
United States United States
Michael lives in sunny Mountain View, California. He started programming with an Apple //e in 4th grade, graduated from UCLA with a math degree in 1994, and immediately landed a job as a QA engineer at Symantec, working on the Norton AntiVirus team. He pretty much taught himself Windows and MFC programming, and in 1999 he designed and coded a new interface for Norton AntiVirus 2000.
Mike has been a a developer at Napster and at his own lil' startup, Zabersoft, a development company he co-founded with offices in Los Angeles and Odense, Denmark. Mike is now a senior engineer at VMware.

He also enjoys his hobbies of playing pinball, bike riding, photography, and Domion on Friday nights (current favorite combo: Village + double Pirate Ship). He would get his own snooker table too if they weren't so darn big! He is also sad that he's forgotten the languages he's studied: French, Mandarin Chinese, and Japanese.

Mike was a VC MVP from 2005 to 2009.

Comments and Discussions

 
Questionnshc32.zip DOES NOT WORK AT ALL Pin
Ivan Stang19-May-17 5:10
Ivan Stang19-May-17 5:10 
QuestionRe: nshc32.zip DOES NOT WORK AT ALL Pin
Rick York19-May-17 5:39
mveRick York19-May-17 5:39 
GeneralNo information on product's service pack level Pin
marcu_mi16-Apr-06 2:39
marcu_mi16-Apr-06 2:39 
GeneralProblems compiling under VStudio 2003.NET Pin
Florian Ott6-Jun-05 21:33
Florian Ott6-Jun-05 21:33 
QuestionMicrosoft Baseline Security Analyzer? Pin
userbugmenot26-Mar-05 10:49
userbugmenot26-Mar-05 10:49 
AnswerRe: Microsoft Baseline Security Analyzer? Pin
Michael Dunn26-Mar-05 10:57
sitebuilderMichael Dunn26-Mar-05 10:57 
GeneralRe: Microsoft Baseline Security Analyzer? Pin
userbugmenot27-Mar-05 5:34
userbugmenot27-Mar-05 5:34 
QuestionOnly 1 out of 30+ downloadable by WHC? Pin
ridelikethewind15-Jan-05 11:25
ridelikethewind15-Jan-05 11:25 
GeneralError launching Hfnetchk Pin
BTP Holdings30-Nov-04 16:13
BTP Holdings30-Nov-04 16:13 
QuestionHfnetchk deprecated? Pin
jginspace14-Aug-04 1:38
jginspace14-Aug-04 1:38 
AnswerRe: Hfnetchk deprecated? Pin
Michael Dunn14-Aug-04 5:26
sitebuilderMichael Dunn14-Aug-04 5:26 
GeneralOT: Update Pin
KarstenK24-Jul-06 21:50
mveKarstenK24-Jul-06 21:50 
GeneralRe: OT: Update Pin
Michael Dunn24-Jul-06 22:56
sitebuilderMichael Dunn24-Jul-06 22:56 
GeneralFatal error when running on XP Pin
Rferj10-Oct-03 3:45
Rferj10-Oct-03 3:45 
GeneralHfnetchk Ver3.86 Pin
Louis Fanchette2-Sep-03 16:07
Louis Fanchette2-Sep-03 16:07 
GeneralRe: Hfnetchk Ver3.86 Pin
Michael Dunn2-Sep-03 19:12
sitebuilderMichael Dunn2-Sep-03 19:12 
GeneralHfnetchk 3.86 Pin
Anonymous2-Sep-03 16:03
Anonymous2-Sep-03 16:03 
Generalwrong wrong Pin
saltynuts200219-Apr-03 19:07
saltynuts200219-Apr-03 19:07 
GeneralHfnetchk - Error 2138 Pin
123Peter23-May-02 10:19
123Peter23-May-02 10:19 
GeneralRe: Hfnetchk - Error 2138 Pin
Michael Dunn23-May-02 19:11
sitebuilderMichael Dunn23-May-02 19:11 
QuestionAcess is denied? Pin
21-May-02 7:17
suss21-May-02 7:17 
AnswerRe: Acess is denied? Pin
21-May-02 7:19
suss21-May-02 7:19 
Generalhfnetchk 3.2 Pin
5-Apr-02 10:22
suss5-Apr-02 10:22 
GeneralRe: hfnetchk 3.2 Pin
Michael Dunn6-Apr-02 4:48
sitebuilderMichael Dunn6-Apr-02 4:48 
General%1 is not a valid win32 application Pin
17-Mar-02 19:35
suss17-Mar-02 19:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.