CgwMonitorManage.Installer.Installer C# (CSharp) Method

Installer() public method

public Installer ( ) : System
return System
        public Installer()
        {
            InitializeComponent();

            process = new ServiceProcessInstaller();
            process.Account = ServiceAccount.LocalSystem;
            service = new ServiceInstaller();
            //windows服务的名字。运行在windows服务下,不考虑在同一台电脑上有主从服务器,console模式可以使用。
            service.ServiceName = "HUAWEI SMC 2.0 MonitorManage";
            service.StartType = ServiceStartMode.Automatic;
            Installers.Add(process);
            Installers.Add(service);
        }