CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Posts
    119

    Question How to determine if .Net Framework 2.0 SP1 is Installed

    Hi,
    Can anyone please tell me how to determine if ".Net Framework 2.0 SP1" is Installed, currently I am reading "Install" "dword entry" from registry path "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727" to find if .Net Framework 2.0 is installed or not, does anyone know how to determine about "Framework 2.0 SP1".


    Thanks,
    Mushq

  2. #2
    Join Date
    Apr 2009
    Posts
    1

    Re: How to determine if .Net Framework 2.0 SP1 is Installed

    Hi, I know it may be late... but if you did not found the solution or if someone else found this thread, here's the solution :

    To determine if a service pack is installed on a specific framework version :
    - open the registry editor(regedit)
    (All versions are listed to the path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\)
    - Look at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\vX.X.XXXXX
    (Where the X means the version to check
    - Look at the key SP, the value is the service pack installed

    In exemple, for the framework 2.0
    Path : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
    Key SP value : 1

    This information means the Framework 2.0 sp1 is installed

    Also note that using the registry editor may corrupt your computer if you modify a value that you do not know the purpose...

  3. #3
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to determine if .Net Framework 2.0 SP1 is Installed

    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #4
    Join Date
    May 2007
    Location
    Egypt
    Posts
    19

    Re: How to determine if .Net Framework 2.0 SP1 is Installed

    Thank you all.
    Mohammad Elsheimy
    Geming.Leader@Hotmail.com
    Geming.Leader@Yahoo.com

    Just Like a Magic the magic inside the machine
    http://JustLikeAMagic.Wordpress.com

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