How to determine whether a version of. NET Framework is installed
Http://hi.baidu.com/robinwjbgui/blog/item/334c9a64205d9bf6f73654de.html
How to determine whether a version of. NET Framework is installed
The following registry key can be used to detect. net installed on the local machine.
The version of the Framework, SP, and Language Pack.
1.. NET Framework
. Net
Framework2.0
Key: [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Net Framework
Setup \ NDP \ v2.0.50727]
Value: Install = 1
. Net framework3.0
Key: [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Net Framework Setup \ NDP \ V3.0]
Value: Install = 1
. Net framework3.5
Key: [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Net Framework Setup \ NDP \ v3.5]
Value: Install = 1
2. Service Pack (taking 2.0 SP1 as an example)
Key: [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Net Framework
Setup \ NDP \ v2.0.50727]
Value: sp = 1
3. Language Pack (take Simplified Chinese as an example)
Key: [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Net Framework
Setup \ NDP \ v2.0.50727/2052]
Value: Install = 1
For more languages, see: http://msdn.microsoft.com/en-us/library/aa480243.aspx