Article ID: 315291 - View products that this article applies to.
This article was previously published under Q315291
This step-by-step article describes how to use the Microsoft Visual Studio .NET IDE to verify the version of the .NET Framework that is installed on a client computer for software installation purposes.
Note This article does not show you how to programmatically detect the .NET Framework in a managed application. The scenario that is covered in this article is a deployment scenario where a developer is not sure of the version of the .NET Framework that is installed on the client computer. This article also does not show you how to detect if a service pack is installed in the .NET Framework.
Visual Studio .NET deployment and setup projects
Locate the following key for the .NET Framework 1.0:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.0Rename the previous key to the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\XXXv1.0Locate the following key for the .NET Framework 1.1:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.1Rename the previous key to the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\XXXv1.1Locate the following key for the .NET Framework 2.0:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v2.0Rename the previous key to the following:
Do not forget to rename the key after you complete your test.
For additional information, visit the following Microsoft Developer Network (MSDN) Web sites:
Creating or adding deployment projects
Adding items to a deployment project
Properties for the Launch Conditions Editor
Adding a launch condition in the Launch Conditions Editor
Article ID: 315291 - Last Review: December 3, 2007 - Revision: 6.6
Contact us for more help
Connect with Answer Desk for expert help.