none
cant install visual studio 2010 sdk RRS feed

  • Question

  • Has anyone had problems installing the visual studio 2010 sdk? i have win7 64 bit abnd vs2010 pro. when i try to run the installer for the sdk i get the rror emessage

    "Error Type: Microsoft.VisualStudio.MissingPrerequisiteException

    Error Message You must have Microsoft Visual Studio 2010 installed on your computer before procedding"

    But I do have VS2010 installed. Has anyone come across this bvefore or does anyone have  any suggestions of what to do/try?

    Thursday, February 17, 2011 9:47 AM

Answers

All replies

  • if its of any relevance i also have vs2010 sp1 installed
    Thursday, February 17, 2011 9:48 AM
  • Can you use Process Monitor from www.sysinternals.com to trace registry/disk activity to see what the installer is looking for to determine if VS is installed?

    See for example:

    HOWTO: Detect installed Visual Studio editions, packages or service packs


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    Thursday, February 17, 2011 7:19 PM
    Moderator
  • I have opened the vssdk.msi of VS 2010 SDK with the orca.exe tool to open .msi and it happens that there is a RegLocator table like this:

     

    Signature_    Root    Key    Name    Type
    VS2007ProductDir    2    SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS    ProductDir    2
    VsIdeTestHostProfessional    2    SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS\Pro    ProductDir    2
    VsIdeTestHostTeamArch    2    SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS\VSTA    ProductDir    2
    VsIdeTestHostTeamDev    2    SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS\VSTD    ProductDir    2
    VsIdeTestHostTeamSuite    2    SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS\VSTS    ProductDir    2
    VsIdeTestHostTeamTest    2    SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS\VSTT    ProductDir    2

    So, in your case check that the registry key HKLM\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS\Pro, ProductDir name exists on your system.


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    Thursday, February 17, 2011 7:33 PM
    Moderator
  • Hi Carlos,

    Thanks for taking the time to investigate, I tried as you suggested and added the registry key but still no dice.

     

    So then I got process monitor from sysinternal and had a like at what was happening to both the registry and file system.

     

    it looks like there are a niumber of failed requests for localization related assemblies and registry settings and the only other things that look out of place are a file search in four locations for wing.dll - all failures

    and registry searches resulting in buffer overflows for the uninstall path - all of which exist as files

    do you have anything else to suggest i try

    ty

     

    dave

    Sunday, February 20, 2011 9:45 AM
  • further to this - after playing around a bit with the installer and sysinternals i *think* that this search is causing the installer to fail

     

    HKLM\SOFTWARE\Wow6432Node\Microsoft\CTF\KnownClasses

    result = NAME NOT FOUND

     

    Do you know what this is?

     

    ty


    Dave

     

    Sunday, February 20, 2011 9:51 AM
  •  > I tried as you suggested and added the registry key but still no dice.

    If you added the registry key that means that the registry key didn't exist which means that VS 2010 Professional was not installed, or not correctly installed, because the the registry key must exist, it is not something that you need to add.

     

    If you are using a Win64 OS system, then the registry key is:

    HKLM\SOFTWARE\Wow6432Node\ Microsoft\VisualStudio\10.0\Setup\VS\Pro

    and not

    HKLM\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS\Pro

    Can you check again?

    PS: I don't think that HKLM\SOFTWARE\Wow6432Node\Microsoft\CTF\KnownClasses is the problem.


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    Sunday, February 20, 2011 12:23 PM
    Moderator
  • i did check that node - i've also just tried installing thre sdk on a virtual machine i use and its exactly the same problem although this is a 32 bit machine also with vs 2010 pro and vs 2010 sp1 - im just trying to remove the sp to see if that makes any difference - it is only beat so i'm hoping thats whats causing this

     

    > If you added the registry key that means that the registry key didn't exist which means that VS 2010 Professional was not installed, or not correctly installed, because the the registry key must exist, it is not something that you need to add.

     

    vs 2010 pro it is installed, 100%, both installs (64bit machine and 32bit virtual machine) completed successfully and i have been using visual studio pro 2010 on both environments without any problems whatsoever

    ps i agree that knownclasses isn't the problem  - i tried addi  an empty key and it made no difference (dirty i know but this is way more trouble than it should be)

    Sunday, February 20, 2011 1:00 PM
  • right, fixed

    i tried unistalling sp1 but that disn't work so i went back to sysinternals

    i found the following two calls between clicking ok on the sdk install and the failure:

    RegOpenKey    HKLM\Software\Microsoft\VisualStudio\10.0    SUCCESS    Desired Access: Maximum Allowed, Granted Acc
    RegQueryValue    HKLM\SOFTWARE\Microsoft\VisualStudio\10.0\InstallDir    SUCCESS    Type: REG_SZ, Length: 118, Data: C:\
    RegQueryValue    HKLM\SOFTWARE\Microsoft\VisualStudio\10.0\InstallDir    SUCCESS    Type: REG_SZ, Length: 118, Data: C:\
    RegCloseKey    HKLM\SOFTWARE\Microsoft\VisualStudio\10.0    SUCCESS   
    RegOpenKey    HKLM\Software\Microsoft\DevDiv\VS\Servicing\10.0    SUCCESS    Desired Access: Maximum Allowed, Gra
    RegQueryValue    HKLM\SOFTWARE\Microsoft\DevDiv\vs\Servicing\10.0\SP    SUCCESS    Type: REG_DWORD, Length: 4, Data: 1
    RegQueryValue    HKLM\SOFTWARE\Microsoft\DevDiv\vs\Servicing\10.0\SP    SUCCESS    Type: REG_DWORD, Length: 4, Data: 1
    RegCloseKey    HKLM\SOFTWARE\Microsoft\DevDiv\vs\Servicing\10.0    SUCCESS   
    RegOpenKey    HKLM\SOFTWARE\Microsoft\CTF\KnownClasses    NAME NOT FOUND    Desired Access: Maximum Allowed

    so given my hunch that it was the service pack i altered the registry setting HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\vs\Servicing\10.0 key "SP" from value from 1 to 0 then reran the service pack and hey presto it worked. after installation i reset the value to 1

     

    love it. a bit hacky but you gotta love finding a way round these problems huh

    does anyone from microsoft monitor this forum? - it might be worth alterting  sdk the install to allow sp1?

    Sunday, February 20, 2011 2:51 PM
  • I've got the same error during installing Visual Studio 2010 SDK:

    "Error Type: Microsoft.VisualStudio.MissingPrerequisiteException

    Error Message You must have Microsoft Visual Studio 2010 installed on your computer before procedding"

    I haven't got the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\vs\Servicing\10.0 key "SP" in my registry. I can't find any simulair key also.

    I have Windows 7 Ultimate (64 bit), VS2010 Ultimate (64 bit) + SP1Rel Installed.

    Can anyone help?

    Thanx in advcance.

    Sunday, March 6, 2011 8:25 AM
  • hi pieter

     

    did you try running sysinternals and see what the installer is looking for?

     

    dave

    Monday, March 14, 2011 4:44 PM
  • If you have SP1 applied to VS 2010, then you should install the VS 2010 SDK SP1:

    Visual Studio 2010 SP1 SDK

    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=21307C23-F0FF-4EF2-A0A4-DCA54DDB1E21&displaylang=en


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    Tuesday, March 15, 2011 6:54 AM
    Moderator
  • As fun as it is to hack the registry and get unintended versions of products to "work" together, this is the actual correct answer.  Too bad it's all the way at the bottom of the thread.  Thanks for your persistance Carlos!
    Andy Bohn
    Tuesday, March 22, 2011 3:31 PM
  • Hello Andy,

    I have unmarked the wrong answer and marked the correct one (I am moderator).

    Thanks,

    Carlos


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    Tuesday, March 22, 2011 4:31 PM
    Moderator
  • Ok, I solved it. Set the registry value to zero

    HKLM\SOFTWARE\Microsoft\DevDiv\vs\Servicing\10.0\SP

    See this thread: http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/12b2e7e5-90a0-4045-8989-9bbf3622e495


    Matias Toro
    Friday, January 6, 2012 11:33 PM
  • If you have SP1 applied to VS 2010, then you should install the VS 2010 SDK SP1:

    Visual Studio 2010 SP1 SDK

    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=21307C23-F0FF-4EF2-A0A4-DCA54DDB1E21&displaylang=en


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/

    Thanks I was having this issue and the fix worked fine for me.
    Peace be with you!
    • Proposed as answer by Red4Con1 Sunday, January 22, 2012 12:01 PM
    Sunday, January 22, 2012 12:00 PM
  • Hi,

    I have been breaking my head for the past 2 days on this. Thanks for the help. I do acknowledge the effort to provide the solution.

    Thursday, February 23, 2012 1:30 PM
  • This matter is discussed at many places. Well if SP1 is applied to VSTS 2010 then SDK SP1 should be installed. Its about choosing the correct SDK package.

    Refer this link for discussion:

    http://smartclient.codeplex.com/discussions/244529

    Tp get SDK for VSTS SP1 check this URL:

    http://www.microsoft.com/en-us/download/confirmation.aspx?id=21835


    Vaibhav.

    Friday, July 5, 2013 11:54 AM