Avian Waves : Blog
Topic: All
Search Blog
 
Recent Comments
A Real Future for Windows Phone Classic? (8)
cheap beats by dre: On hyv menn yhdess kaikki vaiheet k tyypillisesti...

Using a Reverse Proxy to Automatically Force External Lync Meeting Guests to Use Silverlight Client (7)
buy facebook fans: I am very much impressed from this excellent...

I've Been Blog-Memed? Who Knew I Was So Popular! (3)
college term papers: Hi there. Truly cool Anime ... I only got into...

Mystery of the Server 2008 + IIS7 + OLE = "MDAC Not Installed" Error (20)
Carlos: great article. I had that setting set to True at...
Last 15 Posts
Archives
Posted By Timothy • Topic: Tech
Jan 21, 2009 5:59 PM EDT

Sometimes I wonder if SQL 2008's installer was really put through the paces in its beta test.  I have encountered more bugs with it than any other installer, with the possible exception of TFS.

Anyway, so I was trying to install 2008 Management Studio on a workstation this afternoon and ran into my old friend, the MsiGetProductInfo installation error.  Having encountered it before, it was an easy fix.

However, a few steps later I ran into a new error...

SQL Server 2005 Express Tools : Failed 

The installer was telling me that it couldn't proceed because SQL Server 2005 Express Tools was installed.  This was odd because this machine had never had any version of SQL Express or its tools installed.  SQL 2005 Management Studio was installed, but this never prohibited me from installing SQL 2008 Management Studio before.  I went to the Live Search, the Yahoo Search, and the Google, but could not find a satisfactory resolution.  The only advice that seemed to solve the problem for anybody else required uninstalling everything SQL related.  That's just silly!

I concluded the pre-req checker must be wrong.  I decided it was time to analyze what the pre-req checker was doing and try to find a workaround for it.  I fired up Process Monitor (aka ProcMon) and examined what setup was looking at when I clicked on Re-run.  The installer's process name is setup100.exe, so I filtered by that name.  There were a ton of entries, so I filtered by registry entries only since I speculated that a check that looks to see if an app is installed would be isolated to the registry.  There were still a lot of entries.  I began to exclude entries I knew it would not be and looked through the list line-by-line.  I found a candidate. 

SQL 2005 is technically version 9.0.  The SQL team doesn't like decimal places, so folder paths and registry keys tend to use version numbers like 80, 90, and 100 (for 2000, 2005, and 2008, respectively).  I found the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90 was being looked at in a few places.  This was the only time I saw anything related to SQL 2005.  I renamed that key in regedit to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90xx and re-ran the test. 

Success!  But we're not done yet.

SQL 2008 will write entries into HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90 on its own.  We need to merge the old key with the new key without breaking setup.  It's pretty easy.

  1. Install SQL 2008 as normal from this point forward (leaving "90" renamed to "90xx").
  2. When it is finished, export the new "90" key to a file using regedit.
  3. Delete the new "90" key.
  4. Rename the "90xx" key back to "90."
  5. Import the file you exported earlier and overwrite the values in "90."

Mystery solved.

Trackbacks :
Send trackbacks to this URL:
http://www.avianwaves.com/Blog/track.aspx?id=119
In your blog post, you must link back to my post using this URL:
http://www.avianwaves.com/Blog/default.aspx?id=119
Comments :
Good article! solved my problem...

I was installing Sql 2005 Express after Sql 2008 express
and but before using your steps, i needed to uninstall Native Client(2005)!

cheers
Comment By nikos At 10/24/2009 7:27 AM EDT PermaLink
Good but a simple way is if you want to uninstall "Microsoft SQl Express Management" from add/remove in control panel.
It doesn`t say 2005 but usually its there becuase of 2005 .

So another microsoft bug....Things are getting uglier
Comment By singh At 2/1/2010 11:49 AM EDT PermaLink
Many thanks to solve the mistery.
Comment By Laszlo Ury, dr. At 3/16/2010 2:29 PM EDT PermaLink
thank you so much to solve my problem..
Comment By zaryab At 10/22/2010 6:20 AM EDT PermaLink
Man, really really really thank you!
Comment By Paulo Quicoli At 12/1/2010 7:09 PM EDT PermaLink
Simply remove the old version of SQL, i.e. 'Microsoft SQL Server Management Studio Express' from your control panel. Re-boot. And, then install SQL 2008. Once the process is completed, install SQL 2005 again in your machine, if you need both.
Comment By benoj At 7/4/2011 10:02 PM EDT PermaLink
Thank you very much! You saved me a lot of headache, because I had no entry in installed programs for SQL Server 2005 Express. Excellent work.
Comment By Neil At 4/10/2012 11:08 PM EDT PermaLink
Add Comment :
Name :
Email :
URL (Optional) :
       
Comments :
Allowed BBCode Tags : LINK (URL), BOLD, ITALIC, UNDERLINE, QUOTE


By posting a comment to this blog, I agree to the blog rules.

This Avian Waves blog is powered by a modified version of Presstopia Blog




Avian Waves Logo