2 using System.ComponentModel;
3 using System.ServiceProcess;
4 using System.Configuration.Install;
5 using System.Collections.Generic;
11 public class ProjectInstaller : Installer
13 public ProjectInstaller()
15 ServiceProcessInstaller spi = null;
16 ServiceInstaller si = null;
18 spi = new ServiceProcessInstaller();
19 spi.Account = ServiceAccount.LocalSystem;
21 si = new ServiceInstaller();
22 si.ServiceName = "TechBot";
23 si.StartType = ServiceStartMode.Automatic;
25 Installers.AddRange(new Installer[] { spi, si });