Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install RabbitMq silent

I am trying to create one Octopus step that downloads, installs and configures rabbitmq on Windows.

I have tried the following (excluding the download code)

Start-Process -FilePath "c:\temp\otp_win64_19.0.exe" -ArgumentList '/S' -Wait  
Start-Process 'c:\temp\rabbitmq-server-3.6.5.exe' '/S' -Wait
Start-Process 'C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin\rabbitmq-plugins.bat' 'enable rabbitmq_management' -Wait

This usually hangs in the second step (rabbitmq install) and never completes. Have anyone done this successfully?

like image 836
Jonas Røineslien Avatar asked Aug 29 '16 07:08

Jonas Røineslien


1 Answers

I resolved with following command:

$proc = Start-Process 'c:\temp\rabbitmq-server-3.6.5.exe' '/S' -Wait:$false -Passthru

Wait-Process -Id $proc.Id
like image 73
chuanshan ma Avatar answered Nov 16 '22 00:11

chuanshan ma