[rabbitmq-discuss] RabbitMQ Installation Question

Simon MacMullen simon at rabbitmq.com
Tue Jun 3 16:38:30 BST 2014


On 03/06/14 15:30, Wesley Cutting wrote:
> The plugin batch file does not enable the management tools, instead it
> states that the Erlang Home is not set correctly, which doesn’t make
> sense to me because I thought that the RabbitMQ installation consumed
> that same environment variable.

No. It doesn't consume it - it sets it. And if you end up setting 
environment variables while installing then they are not available to 
your installer or subprocesses launched from it until you broadcast a 
WM_WININICHANGE message. See here:

http://hg.rabbitmq.com/rabbitmq-server/file/rabbitmq_v3_3_1/packaging/windows-exe/rabbitmq_nsi.in#l238

for how we do it.

> I have also encountered this problem
> when working with WIX as our installer technology so I know it is not a
> problem with Advanced Installer. The best I can surmise is that RabbitMQ
> and the plugin batch file cannot be run in the same process for whatever
> reason. Can you either confirm my suspicions or point in the direction
> of a potential work around?

The rabbitmq-plugins.bat tool just edits the enabled_plugins file. This 
is a plain text file containing an Erlang term which is a list of 
explicitly enabled plugins. So you could deploy your own file containing 
exactly "[rabbitmq_management]." (without the quote marks) and not have 
to invoke the batch file at all.

If you are embedding RabbitMQ inside another product, you might find 
that you want to skip using the installer and just install the various 
components within your own installer. See

http://www.rabbitmq.com/install-windows-manual.html

for some information on how you might do that.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, Pivotal


More information about the rabbitmq-discuss mailing list