{"id":1733,"date":"2007-02-01T00:16:00","date_gmt":"2007-02-01T00:16:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/heaths\/2007\/02\/01\/how-to-safely-delete-orphaned-patches\/"},"modified":"2019-02-17T15:30:25","modified_gmt":"2019-02-17T22:30:25","slug":"how-to-safely-delete-orphaned-patches","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/setup\/how-to-safely-delete-orphaned-patches\/","title":{"rendered":"How to Safely Delete Orphaned Patches"},"content":{"rendered":"<p>If <a href=\"http:\/\/msdn.microsoft.com\/vstudio\/support\/vs2005sp1\/\">Visual Studio 2005 Service Pack 1<\/a> fails to install, you might find additional <i>.msp<\/i> files under <i>%WINDIR%\\Installer<\/i> for each failed attempt. You should <a href=\"http:\/\/blogs.msdn.com\/heaths\/archive\/2007\/01\/17\/the-patch-cache-and-freeing-space.aspx\">not simply delete these patches<\/a>, however, because if one of the patches was applied successfully to one target product, deleting that patch will cause future maintenance installs \u2013 including repairs, patch install, patch uninstall, and even product uninstall \u2013 to fail. <\/p>\n<p>After safely identifying orphaned patches, you can delete them. There are a couple of different ways to identify orphaned patches. <\/p>\n<p>If you have the <a href=\"http:\/\/go.microsoft.com\/fwlink?linkid=55774\">Windows SDK<\/a> or the older Platform SDK installed or are willing to install either, you can use <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/aa370523.aspx\"><i>msizap.exe<\/i><\/a> to identify and remove orphaned data files such as patches. Run the following command. You will find <i>msizap.exe<\/i> in the <i>bin<\/i> folder of the Windows SDK or Platform SDK installation directory. <\/p>\n<p><span>msizap.exe G! <\/span><\/p>\n<p>If you don&#8217;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 <i>%WINDIR%\\Installer<\/i>. I have attached a simple script to identify which patches are registered \u2013 those patches you should not remove. <\/p>\n<p>To successfully install the patch if you are having problems, please read about <a href=\"http:\/\/blogs.msdn.com\/heaths\/archive\/2007\/01\/11\/known-issues-with-visual-studio-2005-service-pack-1.aspx\">known issues with Visual Studio 2005 Service Pack 1<\/a> and available workarounds.<\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/MSDNBlogsFS\/prod.evol.blogs.msdn.com\/CommunityServer.Components.PostAttachments\/00\/01\/56\/98\/47\/WiMsps.zip\">WiMsps.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 \u2013 including repairs, patch [&hellip;]<\/p>\n","protected":false},"author":389,"featured_media":3843,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[20,45,50],"class_list":["post-1733","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-installation","tag-visual-studio","tag-vs2005sp1"],"acf":[],"blog_post_summary":"<p>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 \u2013 including repairs, patch [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/1733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/users\/389"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/comments?post=1733"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/1733\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media\/3843"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media?parent=1733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/categories?post=1733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/tags?post=1733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}