Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
I recently discovered that the new Mono msi installers no longer adds registry entries that describe the mono installation details, such as version number, installation directory and bin locations. Was this intentional? If so, what is the preferred method of automatically detecting mono on a windows system?
I contributed the new MSI installer. It doesn't write any registry keys anymore (partly intentional because frankly I thought most of them weren't useful).
You should be able to detect whether Mono is installed via the MSI database, e.g. http://stackoverflow.com/questions/4753051/how-do-i-check-if-a-particular-msi-is-installed.
This may not be ideal and adding registry key for at least version and install directory sounds like a good idea. Would that be enough for your use cases?
I checked the info in the MSI database and it doesn't have everything I need. :(
The version and installation directory would be great. There are some more things that I need, I've listed the old reg keys I used to find before. However, I have a feeling that there may be some simple logic I can use instead as long as I can get the install directory. If you have any ideas on how to find the info listed below, it would be greatly appreciated.
Thanks in advance,
I added the following registry keys with https://github.com/mono/release/pull/2 (it'll show up in the next Mono release):
DefaultClr doesn't make sense since with the MSI based installer we only support one Mono installation.
This is now available in Mono 4.2.
FYI as Mono on Windows is a 32bit app, the real registry key is HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Mono on 64bit Windows.