Click here to Skip to main content
12,395,871 members (60,893 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

5.3K views
Posted

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

, 30 Apr 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

Charles Oppermann
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 the Program Manager for Consumer Security Products at ThreatTrack Security.

You may also be interested in...

Comments and Discussions

 
GeneralRe: Ups! You won't believe, but now it works!! I'm crazy. :) Yep... Pin
Member 30824878-May-11 10:06
memberMember 30824878-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
memberAll Time Programming9-May-11 19:50 
GeneralRe: Thank you Pin
Charles Oppermann10-May-11 4:11
memberCharles 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
memberAll Time Programming9-May-11 19:48 
GeneralOn my XP SP3 it complains "Error: Too many command-line par... Pin
Member 30824874-May-11 5:10
memberMember 30824874-May-11 5:10 
GeneralRe: Did you put the key name in quotes? Pin
Charles Oppermann4-May-11 6:03
memberCharles 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.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 30 Apr 2011
Article Copyright 2011 by Charles Oppermann
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid