Reading the registry for appropriate values seems to be the ideal way to detect the version of .net framework installed in a PC. Following are the registry keys for each of the successful installation of .net framework.
Version: 3.0
Registry Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Settup\NDP\v3.0\Setup
Name: InstallSuccess (DWORD value = 1)
Version: 2.0
Registry Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
Name: Install (DWORD value = 1)
Version: 1.1
Registry Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v1.1.4322
Name: Install (DWORD value = 1)
Version: 1.0
Registry Key: KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.0
Name: 3705 (REG_SZ value = 3321-3705)
click here for more info.
Sanal K. Sankar
http://www.sanalks.com
Monday, March 5, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment