Is there a way to find out if rabbitmq is installed on the machine?
Either a command line or powershell script or something in C# because I am trying to check it in my c# code.
I searched for it and found only this one, but it did not help much for my case
EDIT
Just found this code snippet in one of the answers of the above post, but not sure it is the right way
public string GetRabbitMqVersion()
{
string prefix = "rabbitmq_server-";
var dirs = System.IO.Directory.EnumerateDirectories(@"C:\Program Files (x86)\RabbitMQ Server", string.Format("{0}*",prefix));
foreach (var dir in dirs)
{
//Just grab the text after 'rabbitmq_server-' and return the first item found
var i = dir.LastIndexOf(prefix);
return dir.Substring(i+16);
}
return "Unknown";
}