Welcome to MSDN Blogs Sign in | Join | Help

How to Safely Delete Orphaned Patches

If Visual Studio 2005 Service Pack 1 fails to install, you might find additional .msp files under %WINDIR%\Installer for each failed attempt. You should not simply delete these patches, however, because if one of the patches was applied successfully to one target product, deleting that patch will cause future maintenance installs – including repairs, patch install, patch uninstall, and even product uninstall – to fail.

After safely identifying orphaned patches, you can delete them. There are a couple of different ways to identify orphaned patches.

If you have the Windows SDK or the older Platform SDK installed or are willing to install either, you can use msizap.exe to identify and remove orphaned data files such as patches. Run the following command. You will find msizap.exe in the bin folder of the Windows SDK or Platform SDK installation directory.

msizap.exe G!

If you don't want to install either SDK just to get this executable, you can determine which patches are registered and applicable and delete extra patches you find under %WINDIR%\Installer. I have attached a simple script to identify which patches are registered – those patches you should not remove.

To successfully install the patch if you are having problems, please read about known issues with Visual Studio 2005 Service Pack 1 and available workarounds.

Published Wednesday, January 31, 2007 9:16 PM by Heath Stewart
Attachment(s): WiMsps.zip

Comments

Monday, February 05, 2007 12:35 AM by Vaxman2

# re: How to Safely Delete Orphaned Patches

Thanks for this information! We were having a problem with a bunch of orphaned failed Office 2003 patches, and your solution cleaned them up for us!

Monday, February 05, 2007 8:55 PM by Heath Stewart's Blog

# Visual Studio 2005 Service Pack 1 Rollback Breaks Some Applications

When installing Visual Studio 2005 Service Pack 1 , there are a number of errors that might occur due

Tuesday, February 06, 2007 9:23 AM by Alex

# MsiZap.exe

MsiZap.exe is also available inside Installer Cleanup Utility package (349KB):

http://support.microsoft.com/default.aspx?scid=kb;en-us;290301

Tuesday, February 06, 2007 1:12 PM by Heath Stewart's Blog

# Visual Studio 2005 Service Pack 1 Rollback Breaks Some Applications

When installing Visual Studio 2005 Service Pack 1 , there are a number of errors that might occur due

Wednesday, February 14, 2007 2:34 PM by Bart

# re: How to Safely Delete Orphaned Patches

FYI if you install the Installer Cleanup Utility package then MsiZap.exe is placed at c:\Program Files\Windows Installer Clean Up\MsiZap.exe

This whole process from download to execution took about a minute or two and freed up several gigs of orphans from my attempted VS SP1 installs - highly recommended.

Thursday, March 01, 2007 11:41 AM by Georg Begerow

# re: How to Safely Delete Orphaned Patches

Yuhu!! Thanks for the tip! Recoverd 23 GB from the trash vs sp1 left on my hd.

Thursday, March 01, 2007 6:08 PM by coach007

# re: How to Safely Delete Orphaned Patches

Awesome,, I have been able to recover heaps of space from my computer.

I was having trouble finding why my C:/ drive was filled up.

Cheers

Ajay

Saturday, March 03, 2007 8:16 PM by Hector M.

# re: How to Safely Delete Orphaned Patches

Excellent!  This gave me about 3 GB more space from failed attempts of VS 2005 SP1 under Vista Ultimate.  Having a problem getting SP1 to install for some reason.  Can't seem to access the temp folder under which the MSP is running.  But that's a separate issue...

Monday, March 26, 2007 5:26 PM by PK

# re: How to Safely Delete Orphaned Patches

Wow - this was a huge help. The remaining space on my system partition jumped from 175 MB to 1.17 GB. Thanks for posting this - I'll be spreading it to my other IT buddies to help them with their patch installs . . .

Wednesday, April 11, 2007 5:19 PM by Jay R. Wren

# re: How to Safely Delete Orphaned Patches

This helped a TON after a couple of failed VS2005 sp1 failures and very little freespace on an old t42 40GB disk.

Thank you so much!

Monday, April 23, 2007 12:15 AM by Tomsp

# re: How to Safely Delete Orphaned Patches

I am also suffering from the VS Sp1 rollback install problem on XP Sp2. I installed msizap.exe and ran it a recommended above, but I got the errors below (and I'm still in a hosed state). I'd really appreciate any ideas anyone has:

MsiZapInfo: Performing operations for user S-1-5-21-2385871623-2839697288-657975

835-1005

Removing orphaned cached files.

  Error opening 9040111900063D11C8EF10054038389C\InstallProperties subkey of Pr

oducts key for S-1-5-18 user. Error: 2.

  Error opening 9040711900063D11C8EF10054038389C\InstallProperties subkey of Pr

oducts key for S-1-5-18 user. Error: 2.

  Error opening AAE908DA9CFCDAA43A47BD69582F2C62\InstallProperties subkey of Pr

oducts key for S-1-5-18 user. Error: 2.

  Error opening E75939E100E5E5640B3B31E95079FC5A\InstallProperties subkey of Pr

oducts key for S-1-5-18 user. Error: 2.

  Removed file: C:\WINDOWS\Installer\c9b6d.msp

FAILED to clear all data.

Monday, April 23, 2007 2:17 PM by Heath Stewart

# re: How to Safely Delete Orphaned Patches

Tomsp, those are just specifing that the key is not found. However, XP SP2 does not use Windows Installer so the problem is not exactly the same, though it manifests similarily. I recommend contacting Customer Support Services at http://support.microsoft.com or look for an existing Knowledge Base article on the same site.

Tuesday, April 24, 2007 4:42 PM by Heath Stewart's Blog

# Hotfix Published for KB925336

When installing Visual Studio 2005 Service Pack 1 , users may see an error that reads, Error 1718.File

Wednesday, April 25, 2007 2:11 AM by Tanveer Badar

# re: How to Safely Delete Orphaned Patches

You seem to have used C-style comments which don't work in vbs. It gave me error on Line 1, Character 1.

<quote>

// Identify which patches are registered on the system, and to which

</quote>

Wednesday, April 25, 2007 5:31 PM by Heath Stewart

# re: How to Safely Delete Orphaned Patches

Tanveer, you're right. Sorry about that. I ":r license.txt" the script at the last second before I zipped it. I've updated it on this site. Thanks for pointing this out.

Monday, April 30, 2007 10:37 AM by Daniel Peterson

# re: How to Safely Delete Orphaned Patches

Thank you for this.  We had a server with 25 gigs of orphaned patches on it.  I have no idea how this happened (this is a new job), but this took care of it!

New Comments to this post are disabled
 
Page view tracker