MSDeploy安装Windows服务? [英] MSDeploy to install windows service?

查看:116
本文介绍了MSDeploy安装Windows服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个网站,该网站使用NServiceBus发布事件.该站点是使用msdeploy部署的.我们还有NServiceBus.exe,应将其作为Windows服务运行以订阅这些事件,我们也希望对其进行部署.

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.

推荐答案

我最近使用MSDeploy,Phantom和installUtil.exe进行了此操作

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

您基本上只需要修改安装程序类,并在需要时提升远程wmsvc服务特权.

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

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆