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.

0

1 Answer 1

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
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.