Click here to Skip to main content
15,868,141 members
Articles / .NET
Alternative
Tip/Trick

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.
5.00/5 (1 vote)
30 Apr 2011CPOL 11.9K   6
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...
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 the user jump through hoops, why not write a native application that presents the information? I mean, you probably are planning on installing software on the users machine anyway, why not have a program that can do this?

http://support.microsoft.com/kb/318785[^]

Finally, if you just want a list of installed versions have the user execute the following at the command prompt:

reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP" /v Version /s

License

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


Written By
Program Manager
United States United States
Charles Oppermann is a 25-year veteran of software design. He is the original author of JAWS, the popular screen reader for people with visual impairments, and spent over a decade at Microsoft working on accessibility and user experience in the Windows, Internet Explorer and speech product groups.

Charles was a founding representative to the W3C and Web Accessibility Initiative (WAI), and the author of two technical books published by Microsoft Press. He has also worked at Cisco Systems, Amazon.com, and is currently direct test automation efforts at Malwarebytes.

Comments and Discussions

 
GeneralRe: Ups! You won't believe, but now it works!! I'm crazy. :) Yep... Pin
Thornik8-May-11 10:06
Thornik8-May-11 10:06 
GeneralBest of all. Safe and accurate results for all to any user a... Pin
All Time Programming9-May-11 19:50
All Time Programming9-May-11 19:50 
GeneralRe: Thank you Pin
Charles Oppermann10-May-11 4:11
Charles Oppermann10-May-11 4:11 
GeneralReason for my vote of 5 Best of all. Provides accurate resul... Pin
All Time Programming9-May-11 19:48
All Time Programming9-May-11 19:48 
GeneralOn my XP SP3 it complains "Error: Too many command-line par... Pin
Thornik4-May-11 5:10
Thornik4-May-11 5:10 
GeneralRe: Did you put the key name in quotes? Pin
Charles Oppermann4-May-11 6:03
Charles Oppermann4-May-11 6:03 

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

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