61 lines
2.2 KiB
C#
61 lines
2.2 KiB
C#
|
||
namespace SocketService
|
||
{
|
||
partial class ProjectInstaller
|
||
{
|
||
/// <summary>
|
||
/// 必需的设计器变量。
|
||
/// </summary>
|
||
private System.ComponentModel.IContainer components = null;
|
||
|
||
/// <summary>
|
||
/// 清理所有正在使用的资源。
|
||
/// </summary>
|
||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||
protected override void Dispose(bool disposing)
|
||
{
|
||
if (disposing && (components != null))
|
||
{
|
||
components.Dispose();
|
||
}
|
||
base.Dispose(disposing);
|
||
}
|
||
|
||
#region 组件设计器生成的代码
|
||
|
||
/// <summary>
|
||
/// 设计器支持所需的方法 - 不要修改
|
||
/// 使用代码编辑器修改此方法的内容。
|
||
/// </summary>
|
||
private void InitializeComponent()
|
||
{
|
||
this.serviceProcessInstaller = new System.ServiceProcess.ServiceProcessInstaller();
|
||
this.serviceInstaller = new System.ServiceProcess.ServiceInstaller();
|
||
//
|
||
// serviceProcessInstaller
|
||
//
|
||
this.serviceProcessInstaller.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
|
||
this.serviceProcessInstaller.Password = null;
|
||
this.serviceProcessInstaller.Username = null;
|
||
this.serviceProcessInstaller.AfterInstall += new System.Configuration.Install.InstallEventHandler(this.ServiceProcessInstaller_AfterInstall);
|
||
//
|
||
// serviceInstaller
|
||
//
|
||
this.serviceInstaller.DisplayName = "数据传输通讯服务";
|
||
this.serviceInstaller.ServiceName = "SocketService";
|
||
this.serviceInstaller.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
|
||
//
|
||
// ProjectInstaller
|
||
//
|
||
this.Installers.AddRange(new System.Configuration.Install.Installer[] {
|
||
this.serviceProcessInstaller,
|
||
this.serviceInstaller});
|
||
|
||
}
|
||
|
||
#endregion
|
||
|
||
private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller;
|
||
private System.ServiceProcess.ServiceInstaller serviceInstaller;
|
||
}
|
||
} |