通常情况下,Windows服务的服务名(ServiceName属性)在编码的时候就指定了的:
this.serviceInstaller1.DisplayName = "theService";
this.serviceInstaller1.ServiceName = "MyService";
this.serviceInstaller1.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
有什么办法可以允许在服务安装的时候指定其服务名?即同一个服务程序允许以不同的服务名进行安装?
this.serviceInstaller1.DisplayName = "theService";
this.serviceInstaller1.ServiceName = "MyService";
this.serviceInstaller1.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
有什么办法可以允许在服务安装的时候指定其服务名?即同一个服务程序允许以不同的服务名进行安装?
解决方案 »
- 高手帮忙 team foundataion server
- 请问如何在C#中引用Microsoft.Office类包?
- asp.net后台使用post形式得到值
- 如何判断一个type是list呢?
- 网上有没有winform下的treeview控件绑定数据库表的例子。
- 求注释 private void linkLabel1_LinkClicked
- 请帮忙看一下Log4Net的问题
- 生成了发布版本的可执行文件后,程序无法运行
- help me!
- 打开网页!
- TreeView (windows form)如果判断一个node是否有父node?
- 【求助 C#】根据Dataset里面的内容添加到Treeview中。
好像不能在一个机器上安装只有服务名不同两个服务吧.