I need help writing a program that determines whether or not the .net framework is installed on a particular computer (the program is running on this computer, of course).

If it detects the presence of the .net framework, it runs one program (the installation wizard). If it doens't detect the .net framework, it starts another program (the installation program for the framework) after displaying a short message telling the user what it is doing.