There multiple way to replicate the issue this one is simpler:
- Download ProcessExplorer from Microsoft
- Open ProcessExplorer
- Delete the RabbitMQ service (it won't be deleted, it will be marked for deletion)
- Install RabbitMQ service (It will fail)
Here is result from step 4:
rabbitmq_server-3.6.4\sbin>rabbitmq-service.bat install
C:\Program Files\erl8.1\erts-8.1\bin\erlsrv: Unable to register RabbitMQ service with service manager.
Error: The specified service has been marked for deletion.
C:\Program Files\erl8.1\erts-8.1\bin\erlsrv: No service with the name RabbitMQ exists.
rabbitmq_server-3.6.4\sbin>echo Exit Code is %errorlevel%
Exit Code is 0
RabbitMQ service installer returned that there no error, when in reality there was one.
https://github.com/rabbitmq/rabbitmq-server/blob/master/scripts/rabbitmq-service.bat
There multiple way to replicate the issue this one is simpler:
Here is result from step 4:
RabbitMQ service installer returned that there no error, when in reality there was one.
https://github.com/rabbitmq/rabbitmq-server/blob/master/scripts/rabbitmq-service.bat