Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Write-Host "Installing RabbitMQ..." -ForegroundColor Cyan
Write-Host "Downloading..."
$exePath = "$($env:USERPROFILE)\rabbitmq-server-3.5.4.exe"
(New-Object Net.WebClient).DownloadFile('', $exePath)
Write-Host "Installing..."
cmd /c start /wait $exePath /S
$rabbitPath = 'C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.4'
Write-Host "Installing service..."
Start-Process -Wait "$rabbitPath\sbin\rabbitmq-service.bat" "install"
Write-Host "Starting service..."
Start-Process -Wait "$rabbitPath\sbin\rabbitmq-service.bat" "start"
Get-Service "RabbitMQ"
Write-Host "RabbitMQ installed and started" -ForegroundColor Green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment