0

Possible Duplicate:
How to detect what .NET Framework versions and service packs are installed?
Checking the available .NET framework on a client using C++

Is there a deterministic and straightforward way to detect if a certain version (or higher) of the .NET Framework is installed on a Windows machine without using the .NET Framework itself?

How would one go about implementing it?

Example code would be appreciated.

Community
  • 1
  • 1
Chris Smith
  • 764
  • 1
  • 9
  • 22

1 Answers1

0

Your code could check the name of the subdirectories of c:\WINDOWS\Microsoft.NET\Framework. Those directories the name of which starts with a v contain installed versions of the .NET framework. Example:

v1.0.3705
v1.1.4322
v2.0.50727
v3.0
v3.5
v4.0.30319
kol
  • 27,881
  • 12
  • 83
  • 120