Ask a questionAsk a question
 

AnswerWhere is "InstallDir"?

  • Thursday, November 05, 2009 11:34 AMCaptain Kernel Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Earlier versions of Visual Studio (8 and 9) have a registry valued named "InstallDir" this is in location "SOFTWARE\Microsoft\VisualStudio\9.0" (for VS 2008).

    This registry value is important for setup programs and some addins.

    I have VS 2010 beta 2 installed on Windows 7 Ultimate RTM, but can find no equivalent registry value named "InstallDir".

    This means either a) Its missing, an oversight by MS or b) This must be obtained in some other way for VS 20101 or c) It is no longer stored in registry at all.

    Can anyone suggest an explanation?

    Thanks

    Cap'n

Answers

  • Thursday, November 05, 2009 4:37 PMAaron MartenMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Cap'n,

    I choose: d) None of the above.    :-)

    It should be there at HKLM\Software\Microsoft\VisualStudio\10.0. I've confirmed this on several machines including Beta 2 and internal post-beta 2 builds.

    On 64-bit Windows the path is HKLM\Wow6432Node\Software\Microsoft\VisualStudio\10.0 (although that should be transparent to a 32-bit process).

    Thanks,
    Aaron
    http://blogs.msdn.com/aaronmar

All Replies

  • Thursday, November 05, 2009 4:37 PMAaron MartenMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Cap'n,

    I choose: d) None of the above.    :-)

    It should be there at HKLM\Software\Microsoft\VisualStudio\10.0. I've confirmed this on several machines including Beta 2 and internal post-beta 2 builds.

    On 64-bit Windows the path is HKLM\Wow6432Node\Software\Microsoft\VisualStudio\10.0 (although that should be transparent to a 32-bit process).

    Thanks,
    Aaron
    http://blogs.msdn.com/aaronmar
  • Thursday, November 05, 2009 5:25 PMCaptain Kernel Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Cap'n,

    I choose: d) None of the above.    :-)

    It should be there at HKLM\Software\Microsoft\VisualStudio\10.0. I've confirmed this on several machines including Beta 2 and internal post-beta 2 builds.

    On 64-bit Windows the path is HKLM\Wow6432Node\Software\Microsoft\VisualStudio\10.0 (although that should be transparent to a 32-bit process).

    Thanks,
    Aaron
    http://blogs.msdn.com/aaronmar
    Thank you Aaron

    I've lost count of how many times I overlook that Wow6432Node when browsing with regedit!!

    Thx
    Cap'n