none
Detecting the .NET Framework RRS feed

  • Question

  • I have a managed configuration tool (developed in C#) that is a pre-requisite to running other software.  The tool is not installed, but is just distributed via media and run from a command prompt.  Since the tool is managed, it requires the .NET Framework (2.0, in this case).  However, the .NET Framework may not be installed on every host where the tool is executed.  This presents a problem, as the tool simply crashes on startup without giving a good indication of what the actual problem is (i.e. the .NET Framework is not installed).

    Is there a Microsoft-recommended way to detect if the required version of the .NET Framework is installed before executing the tool?

    If the .NET Framework 2.0 is not detected, I would like to display a message explaining that the .NET Framework must be installed.  If the .NET Framework 2.0 is detected, the configuration tool would be started.

    Tuesday, October 20, 2009 5:34 PM

Answers

All replies