INSTMON

Installation cleanups get easier with three utilities.

Mark Minasi

August 31, 1998

3 Min Read
ITPro Today logo in a gray background | ITPro Today

Installation cleanups get easier

Remember the good old days when all you needed to do to uninstall an application was delete its directory and remove the directory from the PATH command? Nowadays, application installers don't just create directories and files; they modify the Registry, profiles, and who knows what else.

These invasive installations leave administrators asking, "Whatexactly did this program do when it installed?" More important,administrators wonder, "What must I do to completely uninstall theapplication?"

Sure, many programs come with uninstallation programs, but theseuninstallers are of limited value. They usually don't remove Registry settings,and they often leave directories and files behind. Windows NT administratorsneed a set of utilities that can spy on a setup program, note every change theprogram makes, and use that information to undo the installation.

The INSTMON Trio
Microsoft Windows NT Server 4.0 Resource Kit, Supplement Two comeswith a trio of utilities--INSTALER, SHOWINST, and UNDOINST--that work togetherto completely remove applications from NT. After you install the resource kit,you find the uninstallation utilities in the INSTMON subdirectory of thedirectory you installed the resource kit utilities in.

INSTALER is the trio's spy. Instead of directly running a setup program,you tell INSTALER to run the setup when you want to monitor an application'sinstallation. INSTALER records everything the setup program does, includingobscure operations such as making API calls and debugging output. INSTALERrecords the setup program's changes to your system in a non-ASCII file with theextension .iml. The utility saves the .iml file in the INSTMON directory.

SHOWINST is the tattler. It reads the .iml file that INSTALER creates andreports to you the information that INSTALER records.

UNDOINST is the fixer. It uses the information from the .iml file toruthlessly zap files, directories, and Registry entries.

When UNDOINST completes, the application is gone, and your system containsalmost no trace of it. (The only trace of files that UNDOINST has troubleremoving is applications' listing on your Programs menu. Hey, no utility'sperfect.)

Putting the Trio to the Test
To try the INSTMON utilities, install a 32-bit program such as winzip95.exe, which you can download from SHAREWARE.COM (http://www.shareware.com). WinZip 6.3 is a good 32-bit file compression and uncompression routine, and winzip95.exe is WinZip's setup routine.

To use INSTALER to install WinZip, type

instaler wzip winzip95.exe

at a command prompt. (Wzip is the filename I selected for the .iml and logfiles INSTALER creates during the WinZip installation.) INSTALER displayshundreds of lines of information about what winzip95.exe is doing. You cansafely ignore this information as it scrolls by, but if you'd like to look atthe information in detail after the installation completes, open the wzip.logfile. (You don't need wzip.log to uninstall WinZip.)

After you enter the instaler command, winzip95.exe runs, installing WinZip.After WinZip installs, INSTALER terminates, telling you it created a file calledwzip.iml.

If you want to find out the names of the files winzip95.exe created and seewhat other changes the WinZip installation made, type

showinst wzip >report.txt

at a command prompt. This command will generate a text file, report.txt,that summarizes all the file, directory, Registry, and .ini file changes thatwinzip95.exe made to your system.

If you want to wipe WinZip off your computer altogether, use the applicationterminator, UNDOINST. Open a command prompt and type

undoinst wzip

In my tests, UNDOINST removed all traces of WinZip except for its presenceon my Programs menu. I still see a WinZip entry when I click Start, Programs,even though the application is no longer on my machine. The INSTMON programsdon't offer the functionality of Zero Administration for Windows (ZAW), but they're pretty neat!

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like