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

[RunInstallerAttribute(true)]
public class ProjectInstaller : Installer {
 private ServiceInstaller serviceInstaller;
 private ServiceProcessInstaller processInstaller;

 public ProjectInstaller() {
  serviceInstaller = new ServiceInstaller();
  processInstaller = new ServiceProcessInstaller();

  processInstaller.Account = ServiceAccount.LocalSystem;
  serviceInstaller.StartType = ServiceStartMode.Automatic;
  serviceInstaller.ServiceName = "ProcessWatchService";

  Installers.Add(serviceInstaller);
  Installers.Add(processInstaller);
 }
}