Discussion:
How : VS2005 msi to include custom MSMQ queue installer
(too old to reply)
Stan4th
2007-12-21 13:57:00 UTC
Permalink
Hi,
I've created a windows service app in C# (VS2005) and created installer for
MSMQ queue.
The msi installer project I've created for it does not install the queue.
It installs the windows service app OK and doesn't give any error messages.
I've tried on my local machine.
Can anyone provide insight/solution to how to make it install the queue also.
Cheers,
John.
John Breakwell (MSFT)
2007-12-28 15:32:05 UTC
Permalink
Hi

My understanding is that you can't create a queue during the installation of
MSMQ.
You would need to run a custom app after MSMQ installation to create the
queues for you.

MQCreateQueue
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msmq/html/331e3b35-59de-4a94-af2b-acf566a47d41.asp

MessageQueue.Create Method (String)
http://msdn2.microsoft.com/en-us/library/5yka0xsf.aspx

MSMQQueueInfo
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msmq/html/f054e768-ddc1-42c8-aa38-52b26076b421.asp

Alternatively, there is an unsupported trick for creating Private queues.
Doesn't work for public queues.
If you need to deploy a private queue that is the same from machine to
machine, you could create the queue on one machine and deploy the
corresponding text file that was created in the \msmq\storage\lqs directory
to the other machines. The private queue gets created when the MSMQ service
starts up and reads the contents of the LQS directory.

174307 Interpreting file names in the Storage directory in Microsoft Message
Queue Server and in Microsoft Message Queuing
http://support.microsoft.com/default.aspx?scid=kb;EN-US;174307

Cheers
John Breakwell
Post by Stan4th
Hi,
I've created a windows service app in C# (VS2005) and created installer for
MSMQ queue.
The msi installer project I've created for it does not install the queue.
It installs the windows service app OK and doesn't give any error messages.
I've tried on my local machine.
Can anyone provide insight/solution to how to make it install the queue also.
Cheers,
John.
Frank Boyne
2007-12-29 00:37:57 UTC
Permalink
Post by Stan4th
I've created a windows service app in C# (VS2005) and created
installer for
MSMQ queue.
Are we talking about an instance of the MessageQueueInstaller class from
System.Messaging? Could you post the code you are using to instantiate
the class and set properties?
Post by Stan4th
The msi installer project I've created for it does not install the queue.
I have to admit I've never used a MessageQueueInstaller. You could try
running InstallUtil against your assembly and then inspect the log file
to see what (if anything) happened.
http://msdn2.microsoft.com/en-us/library/50614e95.aspx

Loading...