Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Tagged as

Go to top

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

, 30 Apr 2011
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.
Follow on   Twitter   LinkedIn

You may also be interested in...

Comments and Discussions

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

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 | Mobile
Web04 | 2.8.140916.1 | Last Updated 30 Apr 2011
Article Copyright 2011 by Charles Oppermann
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid