Hello:
I am building an Installer for Enterprise templates and having difficulty in
getting the directory locations for Visual Studio from the registry .
1) Does any one knows how I can get the Key for Visual Studio installation
directory from the Registry. As of now I am looking in
HKLM/Microsoft/VisualStudio/7.1/InstallDir, this returns me c:\program
files\MS Visual Studio2003\Common7\IDE but whereas I need just the path for
"c:\program files\MS Visual Studio2003".
2) Also, if you know that in a Setup project's {File Sytem on Target
Machine/Custom Folder's Default location} I have a property named [VSPATH]
that returns "c:\program files\MS Visual Studio2003\Common7\IDE" (looking at
HKLM/Microsoft/VisualStudio/7.1/InstallDir , in registry) but when I write
something like [VSPATH]\..\..\EnterpriseFrameworks (in installer File Sytem
on Target Machine/Custom Folder's Default location ) project it gives me an
error in the Visual Studio itself.
I have even tried [VSPATH]\[..]\[..]\[EnterpriseFrameworks] but this is also
not correct. so the moral of the question is: In a Visual Studio Setup
project, how to go two directories up from the path returned by registry ?
Any thoughts ??
Answer to any of these two questions will solve my problem :-)
Thanks,
Vivek
Vivek Vishist - 03 Aug 2005 19:11 GMT
#1 is the solution that I used. I dont know if this is right but it works
there is another solution to 'envdte' namespace to get the 'fullname'
property that gives that path for devenv.exe
Vv
> Hello:
>
[quoted text clipped - 30 lines]
> Thanks,
> Vivek