Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I developed an application that needs MS Message Queuing to work.
But it's really boring to have to go to the control panel of every computer where it's going to be running and go to Control Panel - Add/Remove Programs - Windows Components - Install Message Queuing.
So I would like to do that operation automatically, while running the setups.

Is there a Command Line instruction to install MSMQ?

Thanks :D

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Fun question.

Via Technet:

To run Message Queuing unattended setup, type the following command at the command prompt in the Windows system folder:

sysocmgr.exe /i:sysoc.inf /u: path and file name of answer file

It looks like your answer file should contain:

[Components]
msmq_Core = on
Reminst = on

If it's a client, you'll need another section in the answer file pointing to your server:

[msmq]
SupportingServer = *UNC path of Message Queueing server*

There are a few more options depending on your situation. More details on Sysocmgr and the answer file here.

share|improve this answer
    
Thanks Kara! I just had to change the answer file in order to also install the triggers and it worked perfectly! –  user31591 Jan 14 '10 at 11:37
add comment

Creating a batch file with the follow also works:

;@ECHO OFF
;sysocmgr.exe /i:sysoc.inf /u:%0
;GOTO Finished


[Components]
msmq_Core = ON
msmq_LocalStorage = ON
msmq_ADIntegrated = ON
msmq_TriggersService = ON
msmq_HTTPSupport = OFF
msmq_RoutingSupport = OFF
msmq_MQDSService = OFF

;:Finished

Found this info here.

share|improve this answer
    
This may work (I've no way of testing it), but Kara's solution seems far cleaner... –  voretaq7 Jan 25 '13 at 21:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.