February 20, 2009 | SQL Server

The XP SP3 / MSXML6 SP2 / SQL Server debacle

I see fingers pointing all over the place.  The Windows team blames the SQL team for making setup packages that can't bypass when a newer version of a file already exists on the target system.  The SQL team blames Windows for unceremoniously plopping the core MSXML files into the Windows Protected Files bucket.  Both point fingers at end users who install English versions of SQL Server on German and Italian versions of the operating system, a scenario which is almost unanimously blamed for the problem.

Can't we all just get along?  Fault is irrelevant.  A lot of people are stuck here; they can't install SQL Server or a SQL Server update on XP SP3, and the error messages leave them in a real state of head-scratching.  Error messages include the following:

 
This package is not supported on this operating system.
SkipInstallCA. Return value 3.
 
Fatal error during installation
MainEngineThread is returning 1603
 
Error code 1603
Product: MSXML 6.0 Parser (KB933579)
Installation failed.

For other potential error messages and more details on the problem, you can see Connect item #361660.

Ideally setup would detect the existence of a newer file, and just bypass that portion of the install; however, quite simply, this is a new development, and obviously wasn't a testable issue before XP SP3 was released (which is why there is little blame on the SQL Server 2008 and early SQL Server 2005 issues, but little excuse for the SQL Server 2005 SP3 edition of the problem).

Sure, you can call Product Support Services, and they can swipe your credit card.  Then they will walk you through a two-minute workaround and, after trying to indirectly convince you that they deserve to keep your money, will reluctantly refund you, since it is a problem they introduced.  But here is another workaround that might actually work until they fix the problem.

  1. download and install the Windows Installer Cleanup Utility.  Yes, the installer is a little confusing, as it is painted with all kinds of bitmaps involving antique versions of Microsoft Office.  Just install it and don't let these old logos scare you.  It really is a useful tool both in this case and for removing pesky SQL and VS installs that just won't go away (or are not even offered) via Add/Remove Programs / Programs and Features.
     
  2. launch the utility (it is tough to find at first, Start > All Programs > Windows Install Clean Up), find MSXML6 SP2 in the list, select it, and click remove.  It may not prompt you to reboot here, but I suggest that you do anyway.
     
  3. attempt the SQL Server 2005 / 2008 / SP / CU install again.
     
  4. if SQL Server installs successfully, then reinstall MSXML6.  This may fail (target version is newer than the source, imagine that!) depending on which version of SQL Server you installed, and which components.  In either case, obtain the critical update from KB #954459, which you can get in Security Bulletin MS08-069.  Just search for your operating system and the download for "Microsoft XML Core Services 6.0ā€Ø."  Run this installer and you should be all up to date as far as MSXML6 goes.

If this process does not work (e.g. you still have problems installing SQL Server at 3.), check the setup logs and verify that MSXML6 really is still the issue (you may have fixed one problem only to reveal what would have failed next anyway). 

If MSXML6 is still the issue, then another workaround you can try is to remove XP SP3, install the SQL Server 2005 / 2008 / SP / CU, and then apply XP SP3 again.  If feasible, use the same language edition of SQL Server as the locale of your operating system (I realize that this is not always convenient).

Hopefully, by the time there is another SP for SQL Server, they will have fixed this mess, regardless of who is to blame.

77 comments on this post

    • matthew - February 23, 2009, 10:41 AM

      thanks for the instructions!
      this really works

    • John - February 23, 2009, 5:58 PM

      The workaround is an unacceptable solution for those of us who embed SQL 2005 Express Edition into custom software distributions.  

    • AaronBertrand - February 23, 2009, 8:42 PM

      John, I agree.  I'm trying to help as many people as I can while MS works on a fix; obviously there are people for whom the workaround is inadequate.

    • Roger Gooden - February 25, 2009, 8:38 PM

      Can you tell us the 2 minute workaround support provides on the phone?  We are one of those who distrubute a software package and this looks like it could become a support nightmare.  If we get 50 new clients, am I going to have 50 calls coming in that our software doesn't work?  Was XP SP3 pushed out to all I assume?  Who to blame, I don't care but please MS get us a fix ASAP.

    • AaronBertrand - February 26, 2009, 12:33 AM

      Roger,
      Believe me, I would share it if I had it.  I am awaiting for more details from an internal contact, including the actual workaround, and whether or not I can share it before they post something official.  Currently the company standpoint is to go through support, and in your case, you could call once and you'd have the workaround for all 50 clients.  The call won't cost you anything because it's a bug.  Neither fun nor ideal, but ultimately better than the more elaborate "fixes"…

    • Brad - February 26, 2009, 7:43 PM

      I was able to finally get SQL Server 2005 to install, but MSXML 6 SP 2 will not re-install. It says the installation was interrupted prior to completion and I should run setup later. I've tried rebooting and running the install again, but no luck. SQL Server 2005 seems to be running fine. Any thoughts on how I can get MSXML 6 SP 2 to re-install?

    • AaronBertrand - February 26, 2009, 10:45 PM

      Brad, which package did you try to install?  The one from http://www.microsoft.com/technet/security/Bulletin/MS08-069.mspx or the one from http://www.microsoft.com/downloads/details.aspx?familyid=993C0BCF-3BCF-4009-BE21-27E85E1857B1 ?  Whichever you tried, try the other.
      If neither works, I think someone with a little more knowledge about MSXML6 (e.g. Microsoft Support) would have to review the logs and/or your system config to determine why it won't install.

    • BFritz - March 9, 2009, 12:31 AM

      John, We have the same issue with our product being packaged with SQLE2005 and our software installs crashing all around us, we needed a fix for this now! and could not wait for the Windows or SQL team to fix it! What we had to do was the following, turns out the Windows Installer CleanUp Utility is just a front end for a little command line app called MsiZap (which is installed in the same folder) MsiZap works off the product code which is "MsiZap T {1A528690-6A2D-4BC5-B143-8C4AE8D19D96}" no more broken installs… we had to add that into our installshield process before SQL.

    • Sal - March 10, 2009, 2:58 PM

      Thanks Alot!
      works great

    • JYD - March 11, 2009, 8:16 PM

      Very nice tip.
      Finally I got my new SQL 2008 x64 Ent. Ed. Italian installed on Win Server 2003 R2 x64 Italian.
      I would suggest to launch "msiexec /unregister" followed by "msiexec /regserver" if annoying msi related errors or warning appears in event viewver before install SQL server.

    • John - March 12, 2009, 12:50 AM

      Hey BFrit – that is quite an interesting workaround using "MsiZap T {1A528690-6A2D-4BC5-B143-8C4AE8D19D96}".    I think that should be just a temporary solution, ie the unintall MSXML 6.0 SP2.  The real solution will be for MS to re-release the SETUP.exe for SQL EE which does not bomb on MS XML 6.0 SP2.  

    • Scott - March 12, 2009, 5:16 PM

      THANKS

    • Loc - March 12, 2009, 10:49 PM

      Thank You for the work around!

    • Warren - March 15, 2009, 8:14 AM

      Great Work Bfritz , worked like a charm.
      Thanks

    • Warren - March 15, 2009, 8:14 AM

      Great Work Bfritz , worked like a charm.
      Thanks

    • Warren - March 15, 2009, 8:14 AM

      Great Work Bfritz , worked like a charm.
      Thanks

    • Warren - March 15, 2009, 8:14 AM

      Great Work Bfritz , worked like a charm.
      Thanks

    • Charles S - March 15, 2009, 6:43 PM

      I'm not a developer, so I could not find MsiZap on my PC. So, for the benefit of others not as technical as you folks, here is what I had to do (yes, I know there must be an easier way):  1) downloaded and started the installation of Windows SDK for Windows Server 2008 and .NET Framework 3.5 from Microsoft.  I didn't wait for the whole thing to install because I'm impatient… as soon as MsiZap showed up in a windows search, I ran it in a command prompt with the code listed above by Bfritz.  It worked fantastic.  Then I cancelled the installation of the SDK.  Messy, but I can finally de-stress.  Thank you!

    • AaronBertrand - March 16, 2009, 9:25 PM
    • Frank - March 17, 2009, 2:34 AM

      Thanks for the MSICUU2 suggestion, Aaron.  It worked like a champ on this end.

    • The Real XP SP3 SQL 2K5 MSXML6 Issue - March 17, 2009, 7:28 AM

      -0.) This relates to SQL 2K5 setup failures.
      0.) You should NOT need to uninstall XP SP3 to get SQL setup to work.  Aaron, it would be great for you to remove that from the blog above because that's a big hammer that is not required.  
      1.) The transition from XP SP2 + MSXML6 (KB954459) (version 1099) and then upgrade to XP SP3 leaves the system in a dirty state.  I.e. ARP (add remove programs) shows MSXML6 (KB954459) installed but attempting to uninstall it will result in failure because KB954459 was built to know that MSXML6 is in band in XP SP3 but woops, didn't account for the upgrade from XP SP2 + KB954459 to XP SP3 transition.  SQL Server 2K5 SP3 calls the KB954459 MSXML6 installer (from the MSI cache) on XP SP3 resulting in the same failure which halts SQL install.  A mouthful, I know.
      2.) MSXML6 is in band in XP SP3 so you should not ever need to install it again after cleaning the bad state.
      So how do you get clean?  
      http://support.microsoft.com/kb/290301 and specifically the windows installer cleanup utility http://download.microsoft.com/download/e/9/d/e9d80355-7ab4-45b8-80e8-983a48d5e1bd/msicuu2.exe
      As Aaron mentions above.  That will remove the ARP entry from your system but at the same time leave MSXML6 1099 in system32.  You can then install SQL with no issues.

    • AaronBertrand - March 17, 2009, 10:56 PM

      Quite frankly, removing SP3 might be a last resort option.  I think it is clear in the blog that this might be required if all of the previous recommendations failed.  Thankfully this seems to be a rare case, but I have seen forum threads indicating that sometimes this "big hammer" *is* required.

    • Eric - March 20, 2009, 1:21 PM

      I'm one of the lucky ones this fix helps.  Getting really frustrated until I came across this the MSICUU2 use solved the problem instantly. Saved my machine leaving the building through a window!

    • MF - March 24, 2009, 3:11 AM

      I appreciate your help with this matter.  I have been researching on and off for a few months now and using the Cleanup utility did it for me.  In my case, I just had a corrupted msxml6.dll, and was not able to uninstall it from Add/Remove.  As soon as I uninstalled with the cleanup utility, I was able to install SQL Server 2005 without further issues.

    • Dave - March 26, 2009, 1:09 AM

      Great stuff, thanks for taking the time to blog this. Saved us a whole heap of trouble!

    • AMJ - March 26, 2009, 2:41 AM

      i was having problem since last week
      this is what i was looking since i got this problem
      thankx a lot =)

    • Dan - March 28, 2009, 1:41 AM

      Thank you thank you thank you thank you THANK YOU!!!! I'M NOT WORTHY!

    • Sverker - March 30, 2009, 2:29 PM

      Good points and thanks for the help!

    • AaronBertrand - April 1, 2009, 6:49 PM

      Some unsupported workarounds that might be a better approach than the cleanup utility:
      http://is.gd/q6Lv
      http://is.gd/q6MT

    • Daniel Kurland - April 11, 2009, 7:39 PM

      BFritz,
      {Turns out the Windows Installer CleanUp Utility is just a front end for a little command line app called MsiZap (which is installed in the same folder) MsiZap works off the product code which is "MsiZap T {1A528690-6A2D-4BC5-B143-8C4AE8D19D96}" no more broken installs… we had to add that into our installshield process before SQL.}
      This seems like a good work around for the SQL problem.  I was wondering if you could give me step by step instructions of how to run msizap from the commandline.  If you could I would really appreciate it.  I am on like 15 boards with my own posts searching for solutions, and about 6 hours into Microsoft technical support.  It took about 4 hours to convince them that this was an issue.  However, they still have no fix for me.  
      If you could do it step by step.  Pretend I am stupid, which is pretty much how I feel chasing all of these different workarounds unsuccessfully.
      I want to add it to an existing installer package.  Ideally, I'd like to install msizap without the cleanup utility and have it run and remove the broken install, all without the enduser being aware.
      Is this possible?
      Thank you so much!

    • WB - April 13, 2009, 10:44 PM

      This worked! Awesome- Thanks

    • NSK - April 16, 2009, 3:24 PM

      Awesome Aaron.. The solution is excellent and could complete the installation in no time

    • Dave - May 16, 2009, 3:06 AM

      Finally, a solution for this annoying problem!  Thanks Aaron!

    • Jim Lawson - June 20, 2009, 8:10 AM

      If you tried removing MSXML in normal mode and were not successful and you running XP Home Edition, then you need to reboot in safe mode (F8) logged in as "Administrator" only (not as your User Name with administrator rights, or Admin).  
      Then use the Windows Install Cleanup Utility (Msicuu2.exe) to remove the MSXML 6.0 Service Pack 2. It should be successful in removing it where as it didnt in regular mode this is because Home edition has different permissions rights than Pro or Enterprise.

    • Raj Gohil - July 11, 2009, 6:49 AM

      This was really good solution.
      Thanks

    • Cod3 Monk3y, Inc. - July 11, 2009, 8:23 PM

      Thanks Aaron.
      I encountered this problem while installing an upgrade to v3.1.3 for my Neat Receipts scanner. I am on XP SP3. I used the utility to remove KB954459 from my system. I'm going off of "The Real… Issue" comments that KB954459 is in-band in XP SP3 and I am not going to re-install KB954459. If you do not hear back from me, you can assume I have had no other problems!
      Cheers, and thanks again!
      /cm

    • Nikhil - July 16, 2009, 4:03 PM

      Found your blog after digging through several google searches. Followed your directions up on top, and hey it worked!
      Thanks!

    • Allyson - July 17, 2009, 1:28 PM

      Thank you!

    • @MicrosoftSQLCSS - July 19, 2009, 1:50 AM

      http://support.microsoft.com/kb/968749.  We won't charge customer's to walk through this issue.  This is the official source to workaround this problem.  We are looking at getting a more robust solution.

    • AaronBertrand - July 19, 2009, 5:14 AM

      Why not publish the registry change that can allow ISVs who ship Express with their products to bypass the problem programmatically?  The problem isn't that they have to call CSS, regardless of whether or not it is free.  The problem is that *their* customers call *them* and they have to spend *their* support time walking each of their customers through the issue.  šŸ™

    • Andy Sutorius - August 10, 2009, 6:03 PM

      Thanks for the help on this Aaron!

    • Greg Balajewicz - August 20, 2009, 10:42 PM

      the uninstall MSXLM6 via the cleanup utility worked BUT!! i got the blue screen when booting after the uninstall. Only lanuching windows in last known good configuration worked.

    • Joe - September 30, 2009, 5:17 PM
    • Miles - October 9, 2009, 3:37 PM

      http://support.microsoft.com/kb/968749.
      just responds with "Server is too busy" I have never experienced this with a microsoft site before. Has anyone got any idea what is a good time to try (a Quiet period)

    • andy - October 15, 2009, 7:28 AM

      Worked for me, what a funny error, it complains that win xp sp3 is an unsupported OS, haha. I take it that windows installer clean-up actually just calls Msizap with the correct GUID.

    • Ross - October 29, 2009, 5:01 AM

      Hi. This is not strictly on topic (ie: I don't even know what SQL is!), but is related to MSXML6. I am running short of HD space and am getting rid of applications I don't need. I have XP Home.
      Can I delete MSXML6 without affecting my computer's functioning, please? I've googled to find out what MSXML6 actually is, but can't understand the tech talk. All I need to know is do I need to keep this program (or whatever it is)?
      Cheers!

    • AaronBertrand - October 29, 2009, 5:34 AM

      Ross, I'm pretty sure it's essential for some programs other than SQL (IE, maybe Office too), and to be quite honest, you're not going to save a lot of disk space getting rid of it.  Some much better, low-hanging fruit:
      http://www.geckoandfly.com/2009/04/26/remove-windows-xp-update-backup-files-recover-and-increase-disk-space/
      http://www.go4expert.com/forums/showthread.php?t=4278
      Also get this download and read the "cleaning Windows" section:
      http://www.tweakguides.com/TGTC.html

    • Ross - October 29, 2009, 5:53 AM

      Thanks a lot, Aaaron. Will follow up your links and recomendations.
      Cheers!
      Ross

    • Ross - October 29, 2009, 5:54 AM

      Duh – sorry about the typo …should of course be Aaron! No edit function!

    • Nick - November 13, 2009, 11:52 PM

      Great suggestion Aaron! I uninstalled MSXML6 sp2 and the install worked like a charm!

    • Ivana - November 16, 2009, 6:45 PM

      Thank you very much, you help a lot.
      I've lost two whole hours tring to figure out what the hell is going on until I decided it's time to go online.
      And all this for features that a true dba is trying to avoid using in his databases in the first place.
      Anyway, thanks a lot….

    • John McMillion - November 30, 2009, 11:47 PM

      Thank you!  You saved the day!!  =)
      John

    • Bill Miller - December 2, 2009, 2:12 AM

      Thanks Aaron.  This saved the day.  I thought I would never get SQL 2005 back on my XP machine.  But this worked.

    • Ben - December 16, 2009, 7:03 AM

      Oh man!  Thanks!  I was trying to fix that damn failed XML, but couldn't figure out how to uninstall it.  That little tool is cool.

    • David - January 4, 2010, 3:35 AM

      Aaron, thanks, I had just invested several hours on a Sunday afternoon trying to figure out what was going wrong, when I should have been working on something else.  I googled it, found your blog, and removing MSXML 6 worked great. You rock.
      As for Microsoft costing several hours of my time because some product manager doesn't think it is important to fix this problem, well that is how Microsoft earns its bad reputation.

    • JD - January 20, 2010, 1:46 AM

      That worked.  Thanks.  I did not have to uninstall sp3.  I removed msxml 6 sp2 using the microsoft too but that was not enough.  I installed msxml core 6.0 msi and sp 1 msi.  Then, I retried Sql server 2005 and it was able to put msxml 6 sp2 on without issue.  What an ordeal.

    • Rex Gibson - February 5, 2010, 1:12 AM

      I had a slight variation on this problem. MsiZAP could not delete the keys — Permission denied.
      1) MSI ZAP if you have installed Windows Installer CleanUp Utility
      Should be located here: C:\Program Files\Windows Installer Clean Up
      When I ran command prompt:
      C:\Program Files\Windows Installer Clean Up\MsiZap T {1A528690-6A2D-4BC5-B143-8C4AE8D19D96}
      I received error that access was denied.
      I rebooted in safe mode and received the same error.
      * I then opened up windows explorer (in safe mode but I bet this could be done "normally")
      * Navigated to C:\WINDOWS\Installer\
      * Right Clicked on folder {1A528690-6A2D-4BC5-B143-8C4AE8D19D96} >> Properties >> Security >> and clicked on "advanced" button
      * In the Advanced window, I checked the "Replace Permission Entries…" and then clicked on apply.
      * Reran msizap.
      Worked Like a charm.

    • Maik - March 5, 2010, 3:45 PM
    • Fanya - March 7, 2010, 9:34 AM

      Thanks a lot Aaron, you made my day and saved me from getting fat from hours and days of frustration! I struggled for a week trying to get to install SQL Server and failing because of this stupid "Error Signature MSXML 6 Servece Pack 2" Eventually I found your article and HURRRA!!!! – it was like pure magic – I felt like a princess in a fairy tail – Thanks, Thanks and Thanks a lot – You are the Best.

    • Ralph Andersson - March 17, 2010, 6:23 PM

      Hahaha..
      So this is Enterprise Software. What a joke!

    • AaronBertrand - March 17, 2010, 6:27 PM

      Look, I agree that sometimes bugs are embarrassing and downright unacceptable.  But on the flip side, please list one perfect software company – just one.  The plus side is that when issues like this occur, the community can help right the ship.

    • JonRees - April 3, 2010, 12:41 PM

      Aaron – Many many thanks for this guidance – it solved my problem installing Mamut startup instantly. It still shouldnt be necessary however !!

    • David Chin - April 9, 2010, 7:34 PM

      Great Great Info.. !!

    • kunal - May 1, 2010, 8:25 AM

      microsoft is stupid

    • Robo - June 1, 2010, 7:32 PM

      MS SQL is the worst database available in market

    • Vlad - June 16, 2010, 4:52 PM

      You are the best. Worked like a charm! Great instructions easy to follow šŸ˜€ Microsofts instructions are totaly useless and complicated.

    • SJ - July 3, 2010, 8:38 PM

      msicuu2.exe is no longer available to download.  Since it solved the problem I guess that Microsoft had to remove it.  Typical.  Ideas?
      http://support.microsoft.com/kb/290301

    • Brandon Stricker - July 27, 2010, 10:18 PM

      Great post! I happened to have a copy of the Windows Install Cleanup utility handy and force-removing MSXML6 did the trick. Thanks again.
      – B

    • Brandon Peterson - July 29, 2010, 8:55 PM

      So, since Microsoft has pulled the clean-up util is there another solution for this.  Unfortunately we can only go as far as something Microsoft Provides as a fix.  I could direct our customers to a potential solution but we cannot assist at that point.  It would be nice if Microsoft had a solution.
      Thanks,
      Brandon Peterson

    • Mike V. - August 28, 2010, 12:14 AM

      After searching for hours trying to find a fix i finally gave up. i figured out if you are on XP sp3 you can install Sql 2005 what i did was found the registry Key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows then i changed the "CSDVersion" from 300 (SP3) to 200 (SP2) rebooted the machine installed Sql 2005 then ran the sql 2005 sp3 update and all ran just fine then changed the registry key back and rebooted the machine. I have installed 18 machines this way and have not had any issues.    

    • Jacob - August 31, 2010, 10:12 AM
    • Aaron Bertrand - September 10, 2010, 7:19 PM
    • Tony C. - October 29, 2010, 7:03 PM

      Mike V., your fix worked for me.  All previous fixes failed on this particular machine. Really appreciate the post.

    • Friedrich Brunzema - January 6, 2011, 1:49 AM

      If you are a C# programmer, you can use the following code – which does essentially what is described above/
      internal static void DeleteLeftOverMsxmlRegistryEntriesIfPresent()
      {
      try
      {
      Registry.LocalMachine.DeleteSubKeyTree(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1A528690-6A2D-4BC5-B143-8C4AE8D19D96}");
      }
      catch{}
      try
      {
      Registry.ClassesRoot.DeleteSubKeyTree(@"Installer\Products\096825A1D2A65CB41B34C8A48E1DD969");
      }
      catch{}
      try
      {
      Registry.LocalMachine.DeleteSubKeyTree(@"SOFTWARE\Classes\Installer\Features\096825A1D2A65CB41B34C8A48E1DD969");
      }
      catch{}
      }

    • Giusi - February 7, 2011, 11:58 PM

      Thank you Aaron, you really helped me to solve the problem. Hope life will give it back to you! šŸ™‚

    • Vaibhav P - June 28, 2011, 6:52 AM

      Hii Aaron first of all Thanks a lot for the clear instructions that fixed problem in minutes that was stuck for quiet few days.I required SQL 2005 to be installed to use some Tool software and essential part of work your instruction helped me a lot!

    • Russ Thomas - July 25, 2015, 5:54 AM

      I don't care how old this post is… saved my bacon tonight.  Trying to replace a 2008 cluster node that went bad, got this same issue.  The cleanup utility is no longer available at Microsoft, but installing MSXML over the top, uninstalling, and then reattempting node addition worked.

Comments are closed.