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.
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.
How to check whether MSMQ is installed or not
Started by
Malini
, May 07 2002 11:25
1 reply to this topic
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:
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.
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.