Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to check whether MSMQ is installed or not


1 reply to this topic

Malini

Malini
  • Members
  • 9 posts

Posted 07 May 2002 - 11:25

Hi
 I need to check whether MSMQ is installed or not.If MSMQ is installed then I have to check whether the queue is already created.If the queue is already created then I have to delete it and create a new one.
How to check Whether the queue is already created or not.

Leigh Ravenhall

Leigh Ravenhall
  • Members
  • 269 posts

Posted 08 May 2002 - 00:07

To check if MSMQ has been installed, you could probably check to see if the registry key HKLM\Software\Microsoft\MSMQ, or check for the existence of the MSMQ dlls.

To determine if a queue exists:
Code Sample
Set oMSMQ = CreateObject("MSMQ.MSMQQueueInfo")
oMSMQ.PathName = <QueuePath>
oMSMQ.Refresh()
strFormatName = oMSMQ.FormatName

If the queue exists, strFormatName should hold a GUID.  The queue path is the path to the queue, in the form MachineName\QueueName.  It works for remote queues as well as local.
Leigh Ravenhall
Expert Information Services