Click here to Skip to main content
11,480,938 members (58,977 online)
Click here to Skip to main content

Tagged as

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

, 28 Apr 2011 CPOL 5K 2
Rate this:
Please Sign up or sign in to vote.
A safe way to get the user to check if the .NET Framework is installed

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)

Share

About the Author

DaveAuld
Engineer
Scotland Scotland
I have been working in the Oil & Gas Industry for over 25 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 in the Al Shaheen oil field, which is located off the coast of Qatar.

Prior to this, 25 years of North Sea Oil & Gas experience.
Follow on   Twitter   Google+   LinkedIn

Comments and Discussions

 
GeneralRe: Thanks! Pin
OriginalGriff28-Apr-11 23:39
mvpOriginalGriff28-Apr-11 23:39 
GeneralThis is also a good option, but I would rather prefer Charle... Pin
All Time Programming9-May-11 20:46
memberAll Time Programming9-May-11 20:46 
GeneralReason for my vote of 5 I learn something new for check inst... Pin
RaviRanjankr2-May-11 7:03
mvpRaviRanjankr2-May-11 7:03 
GeneralUnfortuenatelly this does not show if Full or Client Framewo... Pin
Reinhard Ostermeier29-Apr-11 5:47
memberReinhard Ostermeier29-Apr-11 5:47 
GeneralRe: Thats true for almost anything that can be installed/uninsta... Pin
DaveAuld29-Apr-11 5:55
mentorDaveAuld29-Apr-11 5:55 
GeneralReason for my vote of 5 With Griffs caveat, a 5 ! :) Pin
Manfred R. Bihy29-Apr-11 4:43
mvpManfred R. Bihy29-Apr-11 4:43 
GeneralMy only problem with this is that some people should not be ... Pin
OriginalGriff28-Apr-11 23:31
mvpOriginalGriff28-Apr-11 23:31 
GeneralRe: No it doesn't replace it, it is just listed as an alternate ... Pin
DaveAuld28-Apr-11 23:32
mentorDaveAuld28-Apr-11 23:32 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150520.1 | Last Updated 29 Apr 2011
Article Copyright 2011 by DaveAuld
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid