windows-servicesmsdeployautomated-deploy

MSDeploy to install windows service?


We have a website which publishes events using NServiceBus. The site is deployed using msdeploy. We also have the NServiceBus.exe which should run as a windows service to subscribe to these events, and we'd like to deploy that as well.

Is there any way to package the service as well as the website, so that it can be installed as well? Is it possible to package separately so we can deploy it to another server?

Any tips on where to find information on how to do this would be great, as we can do automated deployments for the website now.


Solution

  • I recently did this using MSDeploy, Phantom and installUtil.exe

    You just basically need to modify your installer class and elevate your remote wmsvc service privileges if needed.

    Link to blog