Click here to Skip to main content
5,787,682 members and growing! (20,048 online)
Email Password   helpLost your password?
Development Lifecycle » Installation » General     Intermediate

An Advanced Windows Hotfix Manager

By Michael Dunn

An advanced utility that scans computers for missing hotfixes, and helps you download and install them.
VC6, C++Windows, NT4, Win2K, WinXP, Visual Studio, ATL, WTL, STL, Dev

Posted: 2 Dec 2001
Updated: 3 Feb 2002
Views: 249,527
Bookmarked: 30 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
31 votes for this Article.
Popularity: 6.58 Rating: 4.41 out of 5
0 votes, 0.0%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
0 votes, 0.0%
4
6 votes, 100.0%
5

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

About the Author

Michael Dunn


Sitebuilder
Michael lives in sunny Sunnyvale, California, and is still trying to break the habit (as a Buffy fan) of typing "Sunnydale." He started programming with an Apple //e in 4th grade, graduated from UCLA with a math degree in 1995, 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. Zabersoft's flagship product is a media grabber and download manager with the whacky name PimpFish. Mike is now a developer (using WTL~!) at VMware.

He also enjoys his hobbies of playing pinball, bike riding, photography, and the occasional PlayStation or MAME game (current favorite: Out Run). 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 has been a VC MVP since April, 2005.
Occupation: Software Developer (Senior)
Company: VMware
Location: United States United States

Other popular Installation articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 25 of 68 (Total in Forum: 68) (Refresh)FirstPrevNext
GeneralNo information on product's service pack levelmembermarcu_mi3:39 16 Apr '06  
GeneralProblems compiling under VStudio 2003.NETsussFlorian Ott22:33 6 Jun '05  
GeneralMicrosoft Baseline Security Analyzer?memberuserbugmenot11:49 26 Mar '05  
GeneralRe: Microsoft Baseline Security Analyzer?sitebuilderMichael Dunn11:57 26 Mar '05  
GeneralRe: Microsoft Baseline Security Analyzer?memberuserbugmenot6:34 27 Mar '05  
GeneralOnly 1 out of 30+ downloadable by WHC?memberridelikethewind12:25 15 Jan '05  
GeneralError launching HfnetchkmemberBTP Holdings17:13 30 Nov '04  
GeneralHfnetchk deprecated?memberjginspace2:38 14 Aug '04  
GeneralRe: Hfnetchk deprecated?sitebuilderMichael Dunn6:26 14 Aug '04  
GeneralOT: UpdatememberKarstenK22:50 24 Jul '06  
GeneralRe: OT: UpdatesitebuilderMichael Dunn23:56 24 Jul '06  
GeneralFatal error when running on XPmemberRferj4:45 10 Oct '03  
GeneralHfnetchk Ver3.86memberLouis Fanchette17:07 2 Sep '03  
GeneralRe: Hfnetchk Ver3.86sitebuilderMichael Dunn20:12 2 Sep '03  
GeneralHfnetchk 3.86sussAnonymous17:03 2 Sep '03  
Generalwrong wrongmembersaltynuts200220:07 19 Apr '03  
GeneralHfnetchk - Error 2138member123Peter11:19 23 May '02  
GeneralRe: Hfnetchk - Error 2138sitebuilderMichael Dunn20:11 23 May '02  
GeneralAcess is denied?memberAnonymous8:17 21 May '02  
GeneralRe: Acess is denied?memberAnonymous8:19 21 May '02  
Generalhfnetchk 3.2memberWilliam Bradley11:22 5 Apr '02  
GeneralRe: hfnetchk 3.2subeditorMichael Dunn5:48 6 Apr '02  
General%1 is not a valid win32 applicationmemberGunar Mayer20:35 17 Mar '02  
GeneralRe: %1 is not a valid win32 applicationmemberMichael Dunn21:37 17 Mar '02  
GeneralRe: %1 is not a valid win32 applicationmemberBTP Holdings17:15 30 Nov '04  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 3 Feb 2002
Editor: Genevieve Sovereign
Copyright 2001 by Michael Dunn
Everything else Copyright © CodeProject, 1999-2009
Web18 | Advertise on the Code Project