[Mono-winforms-list] How To Check Mono is installed or Not

Paul F. Johnson paul at all-the-johnsons.co.uk
Wed Dec 8 05:26:25 EST 2010


> Grep the result of process.start(mono

That assumes you have a .NET runtime installed and that grep is on the
box in question.

Big answer is there isn't an easy one as different operating systems
install differently.

If the user has Vista/Win7 installed, they'll definately have the .NET
runtime environment installed, so process.start(...) is an option. If
they're on a linux box, it depends if mono came in rpm/deb format or is
self built. Something similar applies to a mac.

ls /usr/bin | grep "mono" 

will work for Linux and mac...




Vertraue mir, ich weiss, was ich mache...

More information about the Mono-winforms-list mailing list