Installer1

using System;
using System.Collections;
using System.ComponentModel;
using System.Configuration.Install;

namespace ePOUrgeMail_Service
{
 /// <summary>
 /// Summary description for Installer1.
 /// </summary>
 [RunInstaller(true)]
 public class Installer1 : System.Configuration.Install.Installer
 {
  private System.ServiceProcess.ServiceInstaller serviceInstaller1;
  private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller1;
  /// <summary>
  /// Required designer variable.
  /// </summary>
  private System.ComponentModel.Container components = null;

  public Installer1()
  {
   // This call is required by the Designer.
   InitializeComponent();

   // TODO: Add any initialization after the InitializeComponent call
  }

  /// <summary>
  /// Clean up any resources being used.
  /// </summary>
  protected override void Dispose( bool disposing )
  {
   if( disposing )
   {
    if(components != null)
    {
     components.Dispose();
    }
   }
   base.Dispose( disposing );
  }


  #region Component Designer generated code
  /// <summary>
  /// Required method for Designer support - do not modify
  /// the contents of this method with the code editor.
  /// </summary>
  private void InitializeComponent()
  {
   this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
   this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
   //
   // serviceInstaller1
   //
   this.serviceInstaller1.DisplayName = "ePOUrgeMail_Service";
   this.serviceInstaller1.ServiceName = "ePOUrgeMail_Service";
   this.serviceInstaller1.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
   //
   // serviceProcessInstaller1
   //
   this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
   this.serviceProcessInstaller1.Password = null;
   this.serviceProcessInstaller1.Username = null;
   //
   // Installer1
   //
   this.Installers.AddRange(new System.Configuration.Install.Installer[] {
                       this.serviceInstaller1,
                       this.serviceProcessInstaller1});

  }
  #endregion
 }
}

posted on 2009-01-05 15:22  ChinaLeo  阅读(139)  评论(0)    收藏  举报

导航