Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2005

Tip: Looking for answers? Try searching our database.

Determining Framework Version

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Bowman - 03 Aug 2005 13:05 GMT
Hi All,

I need to determine the version(s) of the dotnet framework that is(are)
currently installed on the target PC. Here's the caveat.... I won't be able
to use dot net code to do this. It'll have to be under C/C++. What's the
best/most preferred technique for determining this? Should I locate the
C:\WINDOWS\Microsoft.NET\Framework folder and then enum through the version
numbered folders and check the version of mscorlib.dll? Or is there a more
straightforward approach such as some registry setting that can be easily
read?

TIA,

Signature

John Bowman
Verona, WI
18lunkers@charter.net

Cowboy (Gregory A. Beamer) - MVP - 03 Aug 2005 14:05 GMT
You are on the right track. If you can hit the Windows alias %WINDIR% rather
than C:\Windows, that would be better, as it will work on machines that are
installed in some config other than the standard.

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

> Hi All,
>
[quoted text clipped - 8 lines]
>
> TIA,
John Bowman - 03 Aug 2005 15:18 GMT
Gregory,

Thanks. If that was the recommended approach, then I was planning on using
the real windows dir instead of C:\Windows to locate it. I was just hoping
there was a more direct/simpler mechanism that could have been used (: .

John

> You are on the right track. If you can hit the Windows alias %WINDIR%
> rather
[quoted text clipped - 17 lines]
>>
>> TIA,
Mattias Sjögren - 04 Aug 2005 08:02 GMT
John,

>I need to determine the version(s) of the dotnet framework that is(are)
>currently installed on the target PC. Here's the caveat.... I won't be able
[quoted text clipped - 4 lines]
>straightforward approach such as some registry setting that can be easily
>read?

See if this helps

http://blogs.msdn.com/junfeng/archive/2005/07/07/436755.aspx

Mattias

Signature

Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

John Bowman - 04 Aug 2005 17:38 GMT
Mattias,

Thanks. It gives some good code to work from.

John

> John,
>
[quoted text clipped - 14 lines]
>
> Mattias

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.