none
VB.NET 如何判断用户是否安装消息队列。如果没有安装,就调用消息队列程序安装。 RRS feed

答案

  • Hi ,

    试试这个blog里的方法: http://blogs.msdn.com/b/johnbreakwell/archive/2008/05/14/how-to-tell-if-msmq-is-installed.aspx 

    Yes. Try to load Mqrt.dll (using the LoadLibrary API).

    ·         For MSMQ 1.0 and 2.0, the DLL file is not present on the disk if Message Queuing is not installed and so you won't be able to load it.

    ·         For MSMQ 3.0, the Message Queuing binaries are always present on the disk, but trying to load Mqrt.dll fails with ERROR_DLL_INIT_FAILED if Message Queuing is not installed. 

    希望有用.


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • 已标记为答案 可推 2012年6月19日 9:04
    2012年6月18日 5:21
    版主

全部回复