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

namespace SuperSocket.SocketService
{
	[RunInstaller(true)]
	public partial class SocketServiceInstaller : Installer
	{
		private ServiceInstaller serviceInstaller;
		private ServiceProcessInstaller processInstaller;
		
		public SocketServiceInstaller()
		{
			InitializeComponent();

			processInstaller = new ServiceProcessInstaller();
			serviceInstaller = new ServiceInstaller();

			processInstaller.Account = ServiceAccount.LocalSystem;
			serviceInstaller.StartType = ServiceStartMode.Manual;
            serviceInstaller.ServiceName = ConfigurationManager.AppSettings["ServiceName"];

			Installers.Add(serviceInstaller);
			Installers.Add(processInstaller);
		}
	}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;
using System.Configuration;

namespace SuperSocket.SocketService
{
	[RunInstaller(true)]
	public partial class SocketServiceInstaller : Installer
	{
		private ServiceInstaller serviceInstaller;
		private ServiceProcessInstaller processInstaller;
		
		public SocketServiceInstaller()
		{
			InitializeComponent();

			processInstaller = new ServiceProcessInstaller();
			serviceInstaller = new ServiceInstaller();

			processInstaller.Account = ServiceAccount.LocalSystem;
			serviceInstaller.StartType = ServiceStartMode.Automatic;
            serviceInstaller.ServiceName = ConfigurationManager.AppSettings["ServiceName"];

			Installers.Add(serviceInstaller);
			Installers.Add(processInstaller);
		}
	}
}
Change service's start mode to auto
Change service's start mode to auto

git-svn-id: 6d1cac2d86fac78d43d5e0dd3566a1010e844f91@53932 81fbe566-5dc4-48c1-bdea-7421811ca204
