Wednesday, October 19, 2011

How To: Remove $NtUninstall folders


ymptoms

Your Windows folder is full of folders with names like $NtUninstallKBxxxxxx or $NtServicePackUninstall shown in blue. How can you remove them and regain the use of that disk space?
These blue folders are Windows Update uninstall folders

Cause

When you run a Windows update or install a Windows XP Service Pack, many system files are replaced by newer versions. To make it possible to uninstall or roll back an update (in case it is found to be the cause of problems) Windows must preserve copies of all the files replaced in the update. These files are stored in the blue $NtUninstall... folders in the Windows folder.
Links to these $NtUninstall folders are placed in the Registry entries for each update, so that Windows knows where to find the uninstall files for each update. Simply deleting the folders would cause these Registry entries to become invalid. In the majority of cases, Windows updates are never uninstalled. If an update does need to be removed, the necessity for this will usually become apparent very quickly. So it is perfectly safe to remove the uninstall folders for updates that are more than a couple of weeks old. But how to remove them cleanly?

Solution

You can either remove the folders and their corresponding Registry entries manually, or use a removal utility. The manual method is tedious, but described so that you can understand what the automated utility is doing.
Note that once the $NtUninstall backup folders have been removed, by either method, it will not be possible to uninstall that Windows update. Therefore it is recommended that you only remove uninstall folders relating to updates that have been present for some time, when you can be sure that they are causing no problems.

Manual removal

Perform the following steps:
  • Open Windows Explorer, click ToolsFolder Options and select the View tab.
  • Ensure that Show hidden files and folders is selected.
  • Open C:\Windows.
  • Start the Registry Editor (click StartRun and enter regedit.)
For each of the blue $NtUninstall folders that you wish to remove:
  • Make a note of the name or KB number that follows the word Uninstall.
  • Delete the folder.
  • Delete the file named [name/KB number].log and delete it.
  • In the Registry Editor, expand SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
  • Delete the subkey [name/KB number].
  • Expand SOFTWARE\Microsoft\Windows\CurrentVersion\App Management\ARPCache
  • Delete the subkey [name/KB number].

No comments:

Explaining DNS Concepts - DNS Servers-DNS Queries-DNS Records

3 types of DNS queries— recursive, iterative, and non-recursive 3 types of DNS servers— DNS Resolver, DNS Root Server and Authoritative Name...