在同一台电脑上安装多个版本的 Windows 服务
我有一个 .NET 3.5 Windows 服务,它有几种不同的配置/风格,即。发布、测试、调试等。我已经为该服务创建了一个安装程序包,它是作为 msbuild 脚本的一部分构建的,但我需要能够以允许每种服务风格的方式构建安装程序。安装在同一台机器上。有谁知道最好的方法来做到这一点?
谢谢
I have a .NET 3.5 Windows Service that comes in several different configurations/flavours ie. Release, Test, Debug etc. I've created an installer package for the service which is built as part of an msbuild script, but I need to be able to build the installers in a way which would allow each flavour of the service to be installed on the same machine. Does anyone know the best way to do this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许这篇文章会有帮助?
本文继续提供有关如何在同一台计算机上安装 .NET Windows 服务的多个实例的分步说明。
当然,我忍不住想知道为什么您需要在同一台计算机上同时运行调试和发布版本。
Perhaps this article will be of help?
The article continues by providing step-by-step instructions on how you can install multiple instances of a .NET Windows Service on the same machine.
Of course, I can't help but wonder why exactly you would need to run a Debug and Release version at the same time on the same machine.
只是想提请注意 Cody Gray 参考文献中的评论。看来作者和评论者都同意使用 sc.exe 有一种更简单的方法,如下所示
Just wanted to draw attention to the comments in the article Cody gray references. It seems that the author and a commenter agreed that there was an easier method using sc.exe as follows