Home > .NET / CLR / C#, Developer, Tools / Products > FIX: Rule “Previous releases of Microsoft Visual Studio 2008” failed.

FIX: Rule “Previous releases of Microsoft Visual Studio 2008” failed.

August 10th, 2008 Leave a comment Go to comments

Far easier solution is given by Paul in the comments section, highly recommended you follow his suggestion.

As you may be aware, Microsoft RTM’d SQL Server 2008 a few days ago, unfortunately if you have the RTM version of Visual Studio 2008 (any edition) installed you’ll find that installing SQL Server 2008 you’ll get a nasty little surprise:

Rule “Previous releases of Microsoft Visual Studio 2008” failed.
A previous release of Microsoft Visual Studio 2008 is installed on this computer. Upgrade Microsoft Visual Studio 2008 to the SP1 before installing SQL Server 2008.

This is all explained in the KB956139 – Visual Studio 2008 SP1 may be required for SQL Server 2008 installations, there is however a fix or a workaround to installing SQL Server without the need for SP1 if you aren’t able to obtain it.

Simply customise the installer so that these components aren’t installed:

  • Management Tools
  • Integration Services
  • Business Intelligence Development Studio

Then things will chug along nicely:-)

You can download it on MSDN Subscriber Downloads or the TechNet Subscriber Downloads section. Dont forget to checkout What’s New in SQL Server 2008.

{lang: 'en-GB'}
Share
  1. Sami
    May 5th, 2010 at 19:59 | #1

    Thanks Paul u made my day

  2. Lord Belial
    May 28th, 2010 at 11:36 | #2

    @Rafferty Uy
    Your solution was the key to solve my problem, thank you. Now I have all under control with my Visual Studio 2010. I used the SQLEXPRADV_x86_ENU.exe the setup the management system and didn’t selected the web reports. After that all went great. Thank you

  3. Augustinus
    June 24th, 2010 at 18:47 | #3

    wow, you are absolutely great Paul….
    finally it’s work very well..
    thanks paul.. πŸ˜€

  4. rameshnagineni
    June 26th, 2010 at 05:51 | #4

    This will save time ..plz follow steps

    Error:

    Installing SQL Server 2008 DE 64bit on Windows 7 Pro 64bit Problem: Previous release of VS 2008 exists.
    its got failed Upgrade to SP1 required.
    I already had VS 2008 Pro installed with SP1 still I would get this error. Uninstalling everything VS might have resolved the issue but would have resulted in waste of time.

    solution:

    Is to edit registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DevDiv\VS\Servicing\9.0 and update the values to 1 for SP and SPIndex. This key does not get updated during the SP1 installation. Ditto for
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VS\Servicing\9.0\IDE\1033 and for
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VS\Servicing\9.0\VSTS\1033 SP =1, SPIndex = 1 and SPName = “SP1” without the quotes. After doing this I clicked re-run and the check passed. So uninstallation of VS 2008 required neither do you have to start the SQL Server setup all over again. Simple elegant solution. Please let me know guys how it went for you.

  5. Badesaheb
    July 10th, 2010 at 01:03 | #5

    Thanks paul. i was breaking my head over this for a week.

  6. BNP
    August 24th, 2010 at 22:46 | #6

    rameshnagineni !

    Thank you! For those of us who actually have VS2008 SP1 installed, and the SQL Installer as per usual complains, yours is the real solution!

    I remembered having used a similar solution before but this time i was trying to install on an 64bit OS and didn’t realise the Wow6432Node part that is also needed.

  7. Munir hussain
    October 13th, 2010 at 16:52 | #7

    Hi all,
    Great post of paul and rameshnagineni.. Professional Approach
    I have 2 ways to solve this problem:

    1. Install SQL server 2008 before installing VS 2008

    2.Edit the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DevDiv\VS\Servicing\9.0 and update the value to “1” for SP and SPIndex. This key does not get updated during the SP1 installation.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VS\Servicing\9.0\IDE\1033 and for
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VS\Servicing\9.0\VSTS\1033 SP =1, SPIndex = 1 and SPName = β€œSP1? without the quotes.

  8. October 22nd, 2010 at 22:08 | #8

    Hey paul… thanks alot buddy…. love u.. again and again love you….. u done very great job for us…. by ur methos i done the installation… before this i spent 5hourse, to stuck with the installation of sql server 2008, every time same error… () but at last i found the paul technique…… and now successfuly done every thing.. without any boom bastic error….
    once again thanks you

  9. salman.iiitc@gmail.com
    October 23rd, 2010 at 03:34 | #9

    Thanks paul.! you Did Great Job.Thank you Very Much.

    Shekh Muzaphar Salman
    Riyadh

  10. November 15th, 2010 at 17:12 | #10

    Thanks a lot Paul. it Worked πŸ™‚

  11. November 16th, 2010 at 20:19 | #11

    Great Work Man πŸ™‚
    Thanks alot

  12. Billy
    December 15th, 2010 at 11:17 | #12

    Anyone knows how to install Management studio after that?

  13. January 11th, 2011 at 21:11 | #13

    uninstalled everything possible related to Visual Studio 2008 and ran SQL Server 2008 Setup… now works a treat…

  14. Rasha
    March 8th, 2011 at 01:17 | #14

    Hi many many many THX to you
    you are a life saver

  15. Fayeq
    June 2nd, 2011 at 18:23 | #15

    Thanks a Lot!

  16. June 26th, 2011 at 09:51 | #16

    @Paul
    Thanks Paul – been up till near 1am trying to get this thing to install. Now doing it…… bed in a minute…

  17. Hasib
    July 15th, 2011 at 12:03 | #17

    Thanks πŸ™‚

  18. July 22nd, 2011 at 23:14 | #18

    If you are trying to install SQL-2008 and you also have visual studio 2008 installed with service pack one (SP1) and get the error

    β€œA previous release of Microsoft Visual Studio 2008 is installed on this computer. Upgrade Microsoft Visual Studio 2008 to the SP1 before installing SQL Server 2008”

    Then welcome to the Microsoft beta testing program even if you purchased the faulty software.

    With XP the most common solution seem to be renaming the registry key
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VS\Servicing\9.0
    And replacing β€˜9.0’ with β€˜9.0Old’ however this does not solve the problem if you are using windows 7 and the only solution I managed to find that worked was to uninstall VS2008 and all the components and to then install SQL-2008 and finally reinstall VS2008.

  19. Duy Nguyen
    August 30th, 2011 at 11:13 | #19

    πŸ˜€ Thank you.

  20. Enos
    September 1st, 2011 at 21:00 | #20

    Thanks Paul!

  21. Enos
    September 1st, 2011 at 22:32 | #21

    @David Davis
    Thanks alot man. worked like a charm!

  22. akshay
    November 19th, 2011 at 07:14 | #22

    That was great and simple solution. Thanks paul

  23. SBSR
    January 28th, 2012 at 16:41 | #23

    Tnx a lot, very simple solution…..Thats fine

  24. Nikhil
    February 22nd, 2012 at 00:28 | #24

    Upgrade Microsoft Visual Studio 2008 to the SP1 but where pls send me any lint or site from where i want to upgrade a visual studio 2008

  25. Nikhil
    February 22nd, 2012 at 00:33 | #25

    Upgrade Microsoft Visual Studio 2008 to the SP1 but where pls send me any link or site from where i want to upgrade a visual studio 2008 pls send me reply fast because its urgent pls understand my problem

    From
    Nikhil

  26. john
    April 4th, 2012 at 06:58 | #26

    Thank you Paul. Your solution worked like a charm.

  27. April 10th, 2012 at 15:05 | #27

    This was very useful info for avoiding errors during installation of MSSQL server 2008

  28. kunal
    April 19th, 2012 at 17:28 | #28

    Thanks a lot Paul. you are awsm πŸ™‚

  29. April 22nd, 2012 at 06:25 | #29

    paul Pls help me out too..
    i have installed both Vb 2008 express edition 2008 SP 1anD 2010 SP1Rel..
    on installing its displays error ” previous version error” but both are SP1 ….
    also i as mentioned unselected Management Tools & Business Intelligence Development Studio but am not able to find Integration Services and on proceeding other error is displayed ..
    plz plz help me out ….

  30. Sandy Dosreis
    June 17th, 2012 at 23:55 | #30

    This could be for that reason of wonderful aid for myself thanks.

  31. Rayford Carnalla
    July 7th, 2012 at 17:51 | #31

    I’ve to functions decent articles like yours inside my internet site. How now don’t you arrive close to these kinds of posts?

  32. Malcolm Vasher
    July 10th, 2012 at 13:46 | #32

    Appreciate this informative write-up

  33. Helaine Octave
    July 28th, 2012 at 14:20 | #33

    I favor this web site and I is going to be right here once much more.

  34. tacktaro
    August 22nd, 2012 at 00:05 | #34

    Solution!

    In regedit fin key
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VS\Servicing\9.0\PRO\1033
    replace the value SP {REG_DWORD}=0 with 1 and SPIndex {REG_DWORD}=0 with 1.

    Install SQL 2008!!!

  35. Mal
    September 2nd, 2012 at 11:20 | #35

    Thanks a lot man great i wish i saw this post before πŸ˜€ πŸ˜€

  36. qudir ansari
    November 1st, 2012 at 17:14 | #36

    thanks a lot πŸ™‚

  37. SSG
    November 21st, 2012 at 16:20 | #37

    Thanks…

  38. April 9th, 2013 at 20:43 | #38

    unable to install sql server 2008R2 using this regedit keys …defenetly working…
    Solution!
    In regedit fin key
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VS\Servicing\9.0\PRO\1033
    replace the value SP {REG_DWORD}=0 with 1 and SPIndex {REG_DWORD}=0 with 1.

  39. Siva Selvan
    September 13th, 2014 at 02:17 | #39

    Change the following in registry
    In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv
    and
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DevDiv
    Rename the VS folder to VS_1
    Worked like a charm.

Comment pages
1 2 18
  1. No trackbacks yet.