Possible Duplicate:
Checking if .NET is installed from the command line
I have a C# Windows form application that when it is opened on a computer that doesn’t have .NET Framework 4 on it, it shows an error, but not a helpful one. So i wanted to make my own way of determining if the machine has .NET Framework (and show a helpful messege on how to install it) but after some research I understood that you must use a non-.Net language to do that that will encase your app. So i do not know any non .NET language so I would like your help.
If you could help me find code that will suit my needs (preferably with explanations on how to use it) it will help me a lot!
You can create an installer with NSIS and use this script to automatically check for and download the .NET Framework if the specified version is not installed. I’ve used NSIS like this for a couple of .NET applications that are out in the wild.