Windows服务:如何创建多个Windows服务作为多个exe文件

时间:2016-04-01 14:20:54

标签: c# .net windows-services

我的项目名称为WindowsServiceTest。此项目有三个服务名称为Service1Service2Service3。我想将每个服务创建为Separate,Separate安装程序。

我想关注Service1.exeService2.exeService3.exe

有可能吗?

如何??

提前致谢..!

1 个答案:

答案 0 :(得分:0)

您可以在命令提示符下创建服务(确保它以管理员身份运行)。对于每个文件,使用sc create命令将其设置为Windows服务。

sc create [service name] binPath=[path to exe]

相关问题