简体   繁体   English

如何创建一个Visual Studio安装项目以安装多个Windows服务

[英]How to Create a visual studio Setup Project to install multiple Windows Services

I have 3 windows service with separate solutions. 我有3 Windows服务与单独的解决方案。 How can I install all the three with one visual studio Setup Project. 如何使用一个Visual Studio安装项目安装所有三个。

It's not clear why this is a difficulty, but perhaps you are stuck with the idea that the "project output" idea in a setup project means that you can have only one solution's output in a setup project. 目前尚不清楚为什么会遇到困难,但是您可能会坚持这样的想法,即安装项目中的“项目输出”想法意味着安装项目中只能有一个解决方案的输出。

The easiest thing to do is to create the setup project and then add (to the Application Folder) each of the service executables (which I assume have installer classes). 最简单的方法是创建安装项目,然后将每个服务可执行文件(假定为具有安装程序类)添加到“应用程序文件夹”中。 Then add the three service executable installer classes as custom actions. 然后将三个服务可执行安装程序类添加为自定义操作。 To state the obvious, you allowed to have more than one custom action to install a service. 显而易见,您可以使用多个自定义操作来安装服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM