Detecting where Mono is installed


 * Method 1

Mono's Registry Settings

When you install Mono under Windows the installer adds a registry key under HKEY_LOCAL_MACHINE\SOFTWARE\Novell\Mono, and the values entered here can be used to detect where Mono is.

[HKEY_LOCAL_MACHINE\SOFTWARE\Novell\Mono] DefaultCLR=1.2.6

[HKEY_LOCAL_MACHINE\SOFTWARE\Novell\Mono\1.2.6] FrameworkAssemblyDirectory=C:\Program Files\Mono-1.2.6\lib MonoConfigDir=C:\Program Files\Mono-1.2.6\etc SdkInstallRoot=C:\Program Files\Mono-1.2.6


 * Method 2

SharpDevelop uses this helper class to detect where Mono is located