1

My mission is to check if .NET is installed (and terminate the application if not).

I have to check for the following (we have some application variants)

  • FW 3.5
  • FW 3.5 SP1
  • FW 4.0
  • FW 4.5

I guess I have to check if some folder exists - how do I know its name?

ucMedia
  • 4,105
  • 4
  • 38
  • 46

1 Answers1

2

This link might be of some use to you: How to: Determine Which .NET Framework Versions Are Installed

It even has example code for C#, VB.NET, etc...

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
TimothyP
  • 21,178
  • 26
  • 94
  • 142