Click here to Skip to main content
15,882,114 members
Articles / .NET

A safe way to get the user to check if the .NET framework is installed

Rate me:
Please Sign up or sign in to vote.
4.38/5 (8 votes)
29 Apr 2011CPOL1 min read 30.3K   9  
Sometimes, it is helpful to find out if the .NET framework is installed on a machine, or get a user to check over the phone. But, some people should not be allowed near Regedit or the windows folder, so here is a safe way to get them to check.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
28 Apr 2011DaveAuld
A safe way to get the user to check if the .NET Framework is installed
Please Sign up or sign in to vote.
30 Apr 2011Charles Oppermann
Two alternate possibilities:One is conceptual. Consider why you are asking the user. Is it because you have a program or website that requires a specific version? If so, you are expected to distribute the proper redist package with your application.Also conceptually, instead of making...
Please Sign up or sign in to vote.
3 May 2011charles henington
//Also you can get the path like this because not everyone uses Drive C:\ as I use Drive F:\ string path = Environment.SystemDirectory.Remove(3) + @"Windows\Microsoft.NET\Framework"

License

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


Written By
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

Comments and Discussions