Bit of a long title, but it's taken me a while to figure this one out, so I thought I'd make a note of how to work around it in case it's useful to anyone else.
I bought (rented) a dedicated server with SQL Server Express 2005 installed as part of my development process for Caesars Arcade. I figured I'd replace SQL Server Express 2005 with 2008, seeing as it's free and should do fine for what I want.
However, when I tried to install SQL Server Express 2008 through the Microsoft Web Installer by clicking on one of the "install" buttons on the SQL Server Express web page it tried to install and failed. The log stated:
Overall summary:
Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Exit code (Decimal): -2068578304
Exit facility code: 1204
Exit error code: 0
Exit message: The INSTANCESHAREDWOWDIR command line value is not valid. Please ensure the specified path is valid and different than the INSTANCESHAREDDIR path.
The solution seems to be this:
Just below the table on the SQL Server Express web page that contains the "install" buttons is a statement, "If you have Express already installed, are looking to embed SQL Server Express into an application, or need guidance on whether you should perform a custom install, click here."
Click on the "click here" which takes you to a Microsoft blog with a table under the title "Customize". Select the version of SQL Server you want and download it to your computer. When it is downloaded, double click it. It will extract lots of files and, after a short time, open a window titled "SQL Server Installation Center".
Normally, you would click on an option in this window to start the installation, but DON'T. Instead, leave this window open (closing it will delete all the files we just extracted and we need those to run our installation) and do a search for "setup.exe". It should be in a temporary directory somewhere, in my case it put it into D:/random_digits/ where random digits is a long list of letters and numbers. It's a different generated directory everytime you run the extractor.
In this directory, create a shortcut to the setup.exe file and add these switches to the "target" command (arrowed in the below diagram):
/action=Install /INSTALLSHAREDWOWDIR="C:\Program Files (x86)\Microsoft SQL Server (x86)" /INSTALLSHAREDDIR="C:\Program Files (x86)\Microsoft SQL Server"
so that you have something like:
D:/eafd3324ee23/setup.exe /action=Install /INSTALLSHAREDWOWDIR="C:\Program Files (x86)\Microsoft SQL Server (x86)" /INSTALLSHAREDDIR="C:\Program Files (x86)\Microsoft SQL Server"
Now double click the shortcut to run the installer program, still leaving the "SQL Server Installation Window" open so that the files don't disappear.
Go through all the steps and when you get to your feature selection page it should look like this the image below. When you go past this page, it shouldn't stop you with the warning about the directories.
Once you've put all your options in, you should just be able to sit back and wait (for a long time) while it installs SQL Server Express.
One final point. I don't know if it's important, but I uninstalled SQL Server Express 2005 before going through the installation of SQL Server Express 2008.
Subscribe to:
Post Comments (Atom)
16 comments:
A very clear and useful article, thank you.
Dude! i dont care what people say. I really love you now. XD This helps solve my two day problem. Appreciate your time for putting this up. Thanks.
The clearest explanation of a resolution to this error I have come across so far. Cheers!
You are the man - only decent post about this on the entire darn web nice one mate....
Thank you so much!
One other point to note if any SQL Server 2008 parts have already been installed from a previous attempt remove them using add/remove.
The setup will then run perfectly. I tried installing following the instruction here but kept getting the same error. I uninstalled everything i could from the add/remove control panel and voila a perfect install.
Very useful!
I found that the directories were already there from a previous installation attempt and had to remove them. Once that was done, your steps worked like a charm.
Thanks!
This solved my problem, thanks very much.
Thanks it worked for me with little changes i used 7zip to extract setup to a folder and then created short cut and add the path as mentioned.
Cool Thanks
You are a star my friend!
Thank you so much for posting this, after 20 minutes of trawling the web and trying various things I came across your post and hey presto, it's worked!
Thanks again :) Chris
The effort you gave to prepare the resolution is really awesome...
Hats off...
This really worked for me after seaching the whole website for half an hour or so
THX a lot! I wouldn't have finished the installation without that! I had problems removing the old instances in prior. Got it removed with those links:
manually remove SQL Server
and
using msiInv to gather information
Thanks man!
GOD only knows what would come to programming if we have to leave it to this MS morons.
There are validation errors on this page. Click OK to close this dialog box. Review errors at the bottom of the setup page, then provide valid parameters or click Help for more information.
Can you please help me with this above error in 2008r2 installation?
Cheers
Jatin
Post a Comment