CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2003
    Posts
    615

    Check .NET 2.0 installed

    How can I check if .NET 2.0 is installed on a computer? Would checking if %SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727 exists be sufficient?
    Before post, make an effort yourself, try googling or search here.

    When posting, give a proper description of your problem, include code* and error messages.

    *All code should include code tags

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Check .NET 2.0 installed

    This is just one way of checking. But a proper way would be to look in the registry [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy]. This key will give you details of each framework.

    The million dollar question would be, how are you planning to check which version is installed. What language are you going to use.
    A C++ 6.0 implementation is present in this article
    http://www.codeproject.com/cpp/DotNetTester.asp

  3. #3
    Join Date
    Jan 2003
    Posts
    615

    Re: Check .NET 2.0 installed

    Thanks for the reply.

    Considered just using a simple script to check the version;

    Code:
    if not exist %SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727 dotnetfx.exe
    However if I need to read from the registry I might need to re-think my plan.
    Before post, make an effort yourself, try googling or search here.

    When posting, give a proper description of your problem, include code* and error messages.

    *All code should include code tags

  4. #4
    Join Date
    May 2006
    Posts
    76

    Re: Check .NET 2.0 installed

    I am using NSIS to create my installation file, and it has way to find what .Net version is installed, if any.

  5. #5
    Join Date
    Nov 2007
    Posts
    1

    Check .NET 2.0 installed

    Better to check from registry and also most cases from pc performance you also can judge as it is known to slower speed.....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured