Condividi tramite


Updated sample code that detects .NET Framework 2.0

A while back I posted some sample code in C++ that can be used to detect whether or not the .NET Framework 1.0 or 1.1 is installed, and if so, what service pack is installed. I've been meaning to update the code to detect 2.0. Now that the final version number for the .NET Framework 2.0 has been locked to v2.0.50727, I don't have any excuse to put this work off any longer. Plus I got an email from a customer asking about this detection, and that finally provided the motivation I needed to do this. :-) You can find updated detection code for the .NET Framework that includes 2.0 at this location. Hope this helps!

Comments

  • Anonymous
    September 01, 2005
    Hi Aaron, just tried the sample.

    As is, it won't work correctly if you're running as a normal user instead of an Administrator.

    The RegistryGetValue() function asks for (unneeded) KEY_WRITE access; removing this (leaving just KEY_READ) makes everything OK.

    Regards, John Bates.

  • Anonymous
    September 02, 2005
    So the August CTP contains the final version of .NET 2.0 Framework?

  • Anonymous
    September 02, 2005
    The comment has been removed

  • Anonymous
    March 20, 2007
    I've received a few questions recently about how to programmatically detect whether or not the .NET Framework

  • Anonymous
    January 21, 2009
    PingBack from http://www.keyongtech.com/482664-how-do-i-tell-if

  • Anonymous
    May 29, 2009
    I previously posted some sample code to detect the version(s) and service pack levels of the .NET Framework