Share via


How to detect .Net framework installed or not.

This is another frequently asked question.

If you search google how to detect .Net Framework, this(https://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;315291) page ranks very high.

Ignore all the details in the KB articles. It basically asks you to check this reg key. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.0]. If REG_SZ value 3705 exists, then .Net framework v1 is installed.

The same can be applied to detect v1.1. Instead, you check [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.1], and test the existence of REG_SZ value 4322.

But wait, there is another not-so-well known documented way to detech existence of .Net framework v1.1. And it is not even in the first 10 pages of google hits.

Redistributing the .Net framework 1.1

It tells you how to detect .Net framework 1.1. And more! It also tells you how to detect the language pack, and J# package!

Should I say this is a failure of google, or Microsoft?:)

Comments

  • Anonymous
    February 05, 2004
    http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=redistributing+the+.net+framework

    Google seems to be spot on when you ask for redistributing rather than detecting.
  • Anonymous
    February 05, 2004
    The link you provide point to this page
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/redistdeploy.asp

    This is not the same as the one in my post, which is http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/redistdeploy1_1.asp
  • Anonymous
    February 06, 2004
    A question that may be related: for detecting IIS 5.0 or higher (for ASP.NET), is there a better way than checking the registry?
  • Anonymous
    February 06, 2004
    Well, I do not work on IIS team. But can't you check the OS? If the OS is Win2k, it is IIS 5.0. If the OS is WinXP, it is IIS 5.1. If the OS is Win2003, it is IIS 6.0.

    I don't think IIS ever ships out of band.

    For your purpose, you just need to make sure the OS is 1. NT, 2. Major version is 5+.
  • Anonymous
    February 06, 2004
    The comment has been removed
  • Anonymous
    February 07, 2004
    moo,

    Isn't the first link (http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;315291) tells you how to detect .Net framework in a deployment package?
  • Anonymous
    February 08, 2004
    Doing things the hard way with RSS Bandit leads to some interesting statistics; Stuff for my Boss and co-workers; SOA and Joe Developer -- Phillip gets it right (again); Bits on Reporting Services; Wake up and smell RSS.NET; htmlArea (drool); InfoPath duh; McD's
  • Anonymous
    March 03, 2004

    If I write a VB app in VB.NET.. How can I detect if Framwork is installed? Seems like a chicken and egg problem.. if Framework is installed, then the app will not cause error.... Hummm..
  • Anonymous
    March 04, 2004
    It does not make sense to detect framework in a managed application. Instead, you should detect framework in your deployment package. Follow the link in the original post.
  • Anonymous
    April 07, 2004
    The comment has been removed
  • Anonymous
    July 21, 2004
    Go to add remove programs and see if it's listed there. If it is you have it if it isn't you need to install it. Really simple. Geesh;-)
  • Anonymous
    May 26, 2009
    PingBack from http://castironbakeware.info/story.php?title=junfeng-zhang-s-windows-programming-notes-how-to-detect-net