Clean Boot

            and why you need it.

By Gary S. Terhune MS-MVP
This is a revised edition, posted on January 24, 2004

Experience shows that many, many problems that people encounter with Windows 98 and 98SE involve two major issues: installing and/or uninstalling applications (or adding/removing components); and/or, having a cluttered system, requiring maintenance procedures such as Scandisk and Defrag.

A multitude of problems encountered while performing these procedures can be prevented, in great measure, by practicing "Clean Boot" habits.

The principle of "Clean Boot" applies to all versions of Windows, but these instructions are tailored to Windows 98 and 98SE. Windows NT, 2000, XP, and, to a lesser degree, Millennium Edition, have different methods involved. Also, the term "Clean Boot" is used throughout the Microsoft Knowledge Base to refer to a multitude of situations and procedures. I borrow this term because it's what I think of as a "Normal Procedures Clean Boot". In-depth trouble-shooting, for instance, goes several steps deeper in disabling things, steps which are not required, or even necessarily desirable, for the purposes I have in mind when posting this. The whole idea, here, is to get background applications out of the picture, clean up temporary and other garbage files, and otherwise create an environment conducive to successful installation or un-installation of applications, and/or the successful running of utilities that don't like having other processes running at the same time, like Scandisk and Defrag.

"Clean boot" conditions are not conditions in which it is wise to do anything other than installing or uninstalling software, or performing maintenance chores (Scandisk, Defrag, for instance, for which these procedures are *very* good.) Do not go surfing the internet, *do not* check your email, do not use any applications other than those needed
for the tasks mentioned above. You may encounter errors, and you are not protected against viruses or other malicious software. Users with Broadband/Always-On internet connections, or who are on a LAN or WAN should turn off the modem, disable the network adapter, disconnect the network cable, or otherwise do whatever is necessary to isolate the computer from the rest of the world. (Dial-up users, if a dial-up prompt occurs without having been explicitly prompted by the use of IE, OE, etc., you have a potentially serious problem that needs looking into.)

    1. Start>Run>[type] MSCONFIG [enter]
    This launches the System Configuration Utility. If Selective Startup is already chosen, look in the other tabs for items that have been unchecked, and write down those items for future reference. Then, back on the General tab, with Selective Startup chosen, uncheck all *except* WIN.INI and SYSTEM.INI. Click OK and Restart when prompted. Now, look in the AUTOEXEC.BAT tab (if there is one) and see if there is a line that says "SET TEMP =..." If so, put a check mark back in there to re-enable it. While not as common a method, also check CONFIG.SYS (if it exists) for a line saying "TEMP=..." or similar, and if there, re-enable it.(**If using Norton Anti-virus, see below.).

    2. Start>Settings>Control Panel>Display. In the Screensaver tab, make the Screensaver "none", and in Power Management, set all items to "never" (You can create a Power Scheme called "Never" for these settings.) If you are using a custom Desktop IE background, also set that to Standard Windows or some other that does not require the Desktop to be viewed as a Webpage.

    3. Start>Run> (type) %TEMP%

    Warning: This step should *only* be performed after a complete restart of the system!

    This should open whatever directory has been designated as the TEMP environment--usually C:\Windows\TEMP, but it may be different. Use Ctrl+A to Select All, then [Delete] to completely delete the contents of the folder. (You can use Shift+Del, which bypasses the Recycle Bin and permanently deletes the files, but you may want to consider the note below, first.) There *shouldn't* be any "undeletable" files in TEMP at this time. If there are, that needs looking into. When emptying the TEMP folder at other times, there may be files that cannot be deleted. This *shouldn't* be the case after a clean boot, but when it occurs, I hold down the Ctrl key and click on the first file in the list, which de-selects it. Then I hit Delete (or Shift-Del) again, repeating as needed.

    Notice: If you have a SET TEMP command in your Autoexec.bat, disabling that file with MSCONFIG will make the Run command %TEMP% useless. Use the real Path to your usual TEMP folder instead, or see above.

    If you do not empty the TEMP regularly, or are not familiar with the TEMP environment, you should review the contents first. Files in the TEMP folder *should be* garbage, once a full restart has been performed (before that, there may be files waiting to be used during startup--installation files, for instance.) But some log files (particularly of errors), and some auto-backup files for certain applications may be stored here. If you have been having any recent problems, or you have lost files due to crashes, the TEMP folder may contain information you want to keep. It is also possible, of course, that you or other users have unadvisedly saved files here, particularly downloaded files or email attachments, the contents of Zip files, etc. These just may be the only copies you have left. In short, if you are "missing" files, look here. If in doubt about deleting the contents of the TEMP folder, create a new folder elsewhere, then Copy the contents of TEMP over, then Delete the TEMP files (sometimes works better than using Move.) Relying on the Recycle Bin in this case is not really a good idea, since it may already contain dozens or hundreds more files. Just makes the task of review that much more difficult.

    4. Start>Settings>Control Panel>Internet Settings.
    Delete all Temporary Internet Files. If prompted to include "Offline" files, do so. If using Netscape or other browsers, *also* delete the cache files for those applications. But, whether or not you use other browsers or email programs, you still want to delete Internet Explorer's TIFs.

    5. Right-click the Recycle Bin and Empty it.
    Again, if you have been "missing" files, this may be the time to review the contents of the RB. If this is a task you don't want to engage in at this time, you can create a new folder elsewhere, and Move files from the RB to it. Don't use "Restore" unless you are absolutely sure the file(s) need to go back to where they came from. You may overwrite newer versions. If you are using Norton Utilities, and have Protected Recycle Bin enabled (or even if it isn't enabled, since there are "issues" with this item), be sure to also review and/or empty this.

You now have a "clean boot" environment. Nothing is running in the background. Or, at least, nothing should be. If you subsequently discover that something *is* running, particularly if something has re-enabled itself in MSCONFIG, you need to diagnose that issue. Having things loading up at startup after everything has been disabled is not normal and may indicate malicious software or viruses and other devious and unwanted programs.

Also, you have emptied the TEMP folder, TIFs, and the Recycle Bin, and these, too, are important steps in creating a clean environment for installing applications or performing other maintenance operations.

*Uninstalling/Reinstalling--There is one little catch involved in creating a "clean boot" environment for the purposes of uninstalling applications. If part of the uninstall operation involves removing one or more startup launch commands, they will not be removed if they have been disabled. Particularly if you do not intend to reinstall the application exactly as it was before, you need to re-enable the startup commands, first, without actually launching the application(s), before performing the Uninstall. It's easy: Just run MSCONFIG again, immediately before performing the operation, choose Normal Startup, Apply and Close, but *DO NOT* restart the machine. Once the uninstall has been completed, return to MSCONFIG and repeat Step 1, above. If prompted to restart your machine after uninstall, reject that option, repeat Step 1, above, and *then* restart. (If that doesn't prevent the problem, it means the uninstall has done things in a very odd manner and you'll simply have to deal with it manually, as discussed below.)

Norton Anti-Virus:  If using NAV, it is better to not use MSCONFIG to disable it (may cause problems in re-enabling.) The best thing to do with NAV is to go into its own Configuration settings and simply disable the entire thing. The actual steps needed to achieve this vary from version to version, so I won't go into them. In earlier versions, simply disabling Auto-Protect would prompt a message asking if you wanted it to reload with Windows at the next startup. I don't recall if the newest versions do that. Also, in combination with disabling the Autoexec.bat files, disabling Auto-protect was all you had to do in NAV with earlier versions. Again, I'm not certain that this is the case with new versions. But it is *important* to completely disable any background NAV functions before installing or uninstalling applications. These procedures very often do things that NAV is meant to prevent--run Scripts, change system files, etc. Not disabling it can cause real problems.  Lastly, you must remember that after re-enabling NAV, if you have performed an installation or reinstallation, NAV or other utilities *may* see some change as an indication of virus-like activity, and prompt some kind of repair. Reject this prompt, but consider running a full scan to be sure no *real* virus has been introduced.

"Clean boot" conditions are not conditions in which it is wise to do anything other than installing or uninstalling software, or performing maintenance chores (Scandisk, Defrag, for instance, for which these procedures are *very* good.) Do not go surfing the internet, *do not* check your email, do not use any applications other than those needed for the tasks mentioned above. You may encounter errors, and you are not protected against viruses or other malicious software. Once your install/uninstall operations are complete, if you intend to go on to maintenance chores, you need to be sure to reboot first, and then repeat the above steps--you probably no longer have a "clean boot" environment and will want to restore it.

Once you have finished all chores, restore Normal operating conditions by using MSCONFIG to choose "Normal Startup". If you previously noted items that had already been disable in the startup queue, back in Step 1, now is a good time to investigate why. MSCONFIG is not a good place to permanently disable items. If you want to stop something from loading at startup, you need to either use that application's configuration settings to achieve this (with the item enabled in MSCONFIG, so that the command is properly deleted), or you need to uninstall the application completely--or you need to otherwise understand why this item is in the list in the first place. A similar concept applies to items that failed to be removed after an uninstall operation. If you can't figure this out, or have figured it out but don't know how to remove the item(s), the best place to look for help is in the Microsoft newsgroups.

Remember, also, to re-enable any Screensavers, special desktop backgrounds, Power Management settings, etc., that you have previously disabled.

Because some of the more recent known invaders are capable of interfering with the suggestions contained in the above, I suggest you also consider first doing the following, though it may be necessary to set up a clean boot, and even then manually kill a malicious process or two before you can even get these accomplished.

Update your Antivirus, run a full scan. Then, if you haven't already, get, update and run any or all of the following Trojan/Parasite/Adware/Spyware cleaners. I recommend getting and running *all* of them. They each target slightly different things.  Again, be sure you update the definitions they are using to identify crap before running them, each time you run them--which, depending on your surfing habits, should be anything from once a month, to once a week, to once a day, to once an hour if you're really into junkware sites (aka "Free goodies", game sites, fun-places-to-be, etc.)

SpyBot-Search & Destroy

PLEASE! Before doing any of these, see also, for suggestions and cautionary information about internet surfing, and some important hints about using the above. ESPECIALLY, be aware that HijackThis scans result in a LOT of stuff that you *don't* want to delete. The admonishment to save a log and show it to an expert is critically good advice. Not following that advice can really do some damage to your system. SpyBot, too, is capable of similar problems, especially if you change default scan settings or "Immunize".


   See Also:

How to Perform Clean-Boot Troubleshooting for Windows 98 [192926];en-us;192926