Click here to Skip to main content
Click here to Skip to main content

A Safe Way to Get the User to Check if the .NET Framework is Installed

By , 28 Apr 2011
 

My method of choice has always been to look at the Windows folders listed under C:\Windows\Microsoft.NET\Framework.

Each framework version has its own sub-folder:

14/03/2011  23:11    <DIR>          v1.0.3705
14/07/2009  03:37    <DIR>          v1.1.4322
14/03/2011  23:11    <DIR>          v2.0.50727
14/07/2009  05:56    <DIR>          v3.0
14/03/2011  23:11    <DIR>          v3.5
28/04/2011  14:44    <DIR>          v4.0.30319

You also can easily get this from a command prompt by dir %windir%\Microsoft.NET\Framework\ /AD.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

DaveAuld
Engineer Apache North Sea Ltd.
United Kingdom United Kingdom
Member
I have been working in the Oil & Gas Industry for over 20 years now.
 
Core Discipline is Instrumentation and Control Systems.
 
Completed Bsc Honours Degree (B29 in Computing) with the Open University in 2012.
 
Currently, Offshore Installation Manager for the Forties Charlie Platform, which is located ~110Miles NE of Aberdeen, Scotland in the North Sea.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralRe: Thanks!mvpOriginalGriff28 Apr '11 - 22:39 
GeneralThis is also a good option, but I would rather prefer Charle...memberAll Time Programming9 May '11 - 19:46 
This is also a good option, but I would rather prefer Charles Opperman's Alternative. In that regardless of your system is of 32 or 64 bit, uninstalled but the folder exists, etc nothing matters; You just get the right and appropriate answer. If it is installed it will be listed, if uninstalled it wont be present even is the folders still exists. That will be much safe and accurate response.
Thanks for sharing. I learned something new from your option also.
GeneralReason for my vote of 5 I learn something new for check inst...mvpRaviRanjankr2 May '11 - 6:03 
GeneralUnfortuenatelly this does not show if Full or Client Framewo...memberReinhard Ostermeier29 Apr '11 - 4:47 
GeneralRe: Thats true for almost anything that can be installed/uninsta...mentorDaveAuld29 Apr '11 - 4:55 
GeneralReason for my vote of 5 With Griffs caveat, a 5 ! :)mvpManfred R. Bihy29 Apr '11 - 3:43 
GeneralMy only problem with this is that some people should not be ...mvpOriginalGriff28 Apr '11 - 22:31 
GeneralRe: No it doesn't replace it, it is just listed as an alternate ...mentorDaveAuld28 Apr '11 - 22:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 29 Apr 2011
Article Copyright 2011 by DaveAuld
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid