This is not very, but I used it before with some success:
public static bool IsMsmqInstalled { get { try { IntPtr result = NativeMethods.LoadLibrary("Mqrt.dll"); return (result != IntPtr.Zero); } catch (Exception) { return false; } } } public sealed class NativeMethods { [DllImport("kernel32", SetLastError = true, CharSet = CharSet.Unicode)] internal static extern IntPtr LoadLibrary(string lpFileName); }
stuartd
source share