Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / .NET

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

5.00/5 (1 vote)
3 May 2011CPOL 12.6K  
//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) + @WindowsMicrosoft.NETFramework
//Also you can get the path like this because not everyone uses Drive C:\ as I use Drive F:\
 

C#
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)