PC Review


Reply
Thread Tools Rate Thread

Determining .NET Install Directories

 
 
John Puopolo
Guest
Posts: n/a
 
      8th Feb 2005
All:

This *should* be a simple question, but I cannot find a definitive answer on
the net so....

I have both versions 1.1 and versions 2.0 of the CLR/.NET installed on my
machine. I want to get a list of the root directories under which these
live. I can use the following statments to get the most recent info...

System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory();
System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();

However, how do I get a list (similar to what these methods yield) for the
v1.1 as well? In other words, is there a definitive way to iterate the .NET
installation dirs?

Thanks,
John


 
Reply With Quote
 
 
 
 
Mujtaba Syed
Guest
Posts: n/a
 
      9th Feb 2005
Using the config file, make the version whose root directories your need, a "required" version.

<configuration>
<startup>
<requiredRuntime version="1.0.3705"/>
</startup>
</configuration>

Mujtaba.

"John Puopolo" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
> All:
>
> This *should* be a simple question, but I cannot find a definitive answer on
> the net so....
>
> I have both versions 1.1 and versions 2.0 of the CLR/.NET installed on my
> machine. I want to get a list of the root directories under which these
> live. I can use the following statments to get the most recent info...
>
> System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory();
> System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();
>
> However, how do I get a list (similar to what these methods yield) for the
> v1.1 as well? In other words, is there a definitive way to iterate the .NET
> installation dirs?
>
> Thanks,
> John
>
>

 
Reply With Quote
 
Carlos J. Quintero [.NET MVP]
Guest
Posts: n/a
 
      9th Feb 2005
The registry entry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework,
InstallRoot tells you the home directory of .NET Frameworks.

The registry entry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy tells you the
versions installed.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com


"John Puopolo" <(E-Mail Removed)> escribió en el mensaje
news:%(E-Mail Removed)...
> All:
>
> This *should* be a simple question, but I cannot find a definitive answer
> on
> the net so....
>
> I have both versions 1.1 and versions 2.0 of the CLR/.NET installed on my
> machine. I want to get a list of the root directories under which these
> live. I can use the following statments to get the most recent info...
>
> System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory();
> System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();
>
> However, how do I get a list (similar to what these methods yield) for the
> v1.1 as well? In other words, is there a definitive way to iterate the
> .NET
> installation dirs?
>
> Thanks,
> John
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining CLR .NET Installation Directories John Puopolo Microsoft C# .NET 0 7th Feb 2005 10:39 PM
determining ms updates to install for non-internet connected servers zn Microsoft Windows 2000 2 2nd Jan 2005 06:09 PM
Determining the install date of a hotfix =?Utf-8?B?TWljaw==?= Windows XP Embedded 0 14th Jan 2004 11:46 PM
Determining original install's W2K Source Code version =?Utf-8?B?VHJhdmlz?= Microsoft Windows 2000 0 18th Nov 2003 10:36 PM
Deleting directories from install Aaron Soley Windows XP Setup 4 21st Jul 2003 09:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 AM.