c# 系统服务更改服务名称及部署注意事项
2014-04-01 17:23
567 查看
更改名称:ProjectInstaller.Designer.cs文件的
部署系统服务,必须是release文件,debug文件部署会失败
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.TCPMessageProcessorProcessInstaller = new System.ServiceProcess.ServiceProcessInstaller(); this.TCPMessageProcessorInstaller = new System.ServiceProcess.ServiceInstaller(); // // TCPMessageProcessorProcessInstaller // this.TCPMessageProcessorProcessInstaller.Account = System.ServiceProcess.ServiceAccount.LocalSystem; this.TCPMessageProcessorProcessInstaller.Password = null; this.TCPMessageProcessorProcessInstaller.Username = null; // // TCPMessageProcessorInstaller // this.TCPMessageProcessorInstaller.Description = "程序描述";//程序的描述 this.TCPMessageProcessorInstaller.DisplayName = "tcprecserver";//在系统管理界面显示的服务名称 this.TCPMessageProcessorInstaller.ServiceName = "tcprecserver";//注册系统服务时使用的名称 this.TCPMessageProcessorInstaller.StartType = System.ServiceProcess.ServiceStartMode.Automatic; // // ProjectInstaller // this.Installers.AddRange(new System.Configuration.Install.Installer[] { this.TCPMessageProcessorInstaller, this.TCPMessageProcessorProcessInstaller}); }
部署系统服务,必须是release文件,debug文件部署会失败
相关文章推荐
- C# windows服务 的注意事项
- 更改项目名称、解决方案名称注意事项
- 总结新系统部署时,Oracle的一些注意事项:
- 添加nginx到系统服务注意事项
- 数据访问更新服务在生产环境部署注意事项
- 32位程序在64位系统部署注意事项
- 关于某些版本windows更改系统主题的注意事项
- 部署windows服务注意事项
- 调用外围系统的webservice服务注意事项
- C# 中如何操作系统服务?注意事项有哪些?给出代码片段!(图)
- 部署系统之数据库 注意事项
- Windows下添加MySQL服务到系统服务以及注意事项
- C#创建后台服务注意事项
- 上层应用调用自定义的系统服务注意事项
- [转]C#编码应注意的事项清单
- IIS6部署WCF4 REST Service注意事项
- c# 画图中bitmap类处理出图片时,存储的注意事项
- (转)Bitmap基本概念及在Android4.4系统上使用BitmapFactory的注意事项
- C#操作Cookie注意事项
- 个人网站名称填写注意事项