There are several options for C # -based programs to determine which version of .Net is installed. But is it possible to determine if .Net IS is installed? I mean, if I run a C # program on a machine without any .Net installation, I get the following error:
Myprogram.exe - Application Error
The application failed to initialize correctly (0xc0000135). Click OK to terminate the application.
Ok
Yes, I can write a wrapper (some external program or msi package or something like that), but I wonder if I can make this sanity check from my C # program? All I want to do is check for .Net and fail with the correct warning, for example, “Microsoft.Net is required. Install it bla-bla-bla”.
Any clue? Thanks.
source
share