PC Review


Reply
Thread Tools Rate Thread

How can I enumerate all installed frameworks ...

 
 
AA2e72E
Guest
Posts: n/a
 
      3rd Jun 2010
.... programatically using C#?

Thanks.
 
Reply With Quote
 
 
 
 
Matt
Guest
Posts: n/a
 
      3rd Jun 2010
On Jun 3, 9:25*am, Peter Duniho <NpOeStPe...@NnOwSlPiAnMk.com> wrote:
> AA2e72E wrote:
> > .... programatically using C#?

>
> There's nothing in .NET that does this. *AFAIK, you have to look at the
> registry and what's actually installed on the disk.


There's a fairly good chunk of code that does that here:

http://blog.lowesoftware.com/code/de...on-information

Matt
 
Reply With Quote
 
AA2e72E
Guest
Posts: n/a
 
      3rd Jun 2010
Thanks Matt ... looks very hopeful (I haven't tried it yet).

I was able to establish the version in use with

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

which corresponds (I think) with the article's

System.Environment.Version.ToString();

If C# 4.0 is able to target multiple frameworks, I expected to be able to
establish the installed versions more ... readily perhaps (?).
 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      4th Jun 2010
On 03-06-2010 05:43, AA2e72E wrote:
> ... programatically using C#?


http://stackoverflow.com/questions/1...-are-installed

Arne
 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      4th Jun 2010
Hello,

> I was able to establish the version in use with
>
> System.Environment.Version.ToString();
>
> If C# 4.0 is able to target multiple frameworks, I expected to be able to
> establish the installed versions more ... readily perhaps (?).


Multi targeting (which is really more a VS feature) means that you can
choose *at compile time* the version you are targeting. The resulting
application will run only against this version.

This is not the same than selecting at runtime against which version you'll
run (http://msdn.microsoft.com/en-us/library/9w519wzk.aspx). In all cases,
your app doesn't need to enumerate those versions as the version has to be
selected before your app can be started.

If you still need some help, your best bet is likely to explain first what
you are trying to do...

--
Patrice




 
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
Enumerate Installed Fonts jonfroehlich Microsoft Dot NET Compact Framework 1 3rd Mar 2007 01:03 PM
Remote Registry Access using VB.NET to enumerate Installed Software Applications Alan King Windows XP WMI 3 13th Oct 2005 10:13 PM
Re: Enumerate Installed Software Sergey Bogdanov Microsoft Dot NET Compact Framework 2 23rd Jul 2005 06:13 PM
Enumerate Installed Software Miguel Sanders Microsoft Dot NET Compact Framework 0 22nd Jul 2005 09:51 AM
Looking at the size of my two installed Frameworks . . . Stan Shankman Microsoft C# .NET 2 1st Dec 2003 03:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:07 PM.