title: how restart my window service programmatically in c#.net
body: <p>can any one help me up on ...how can i restart my window service programatically by every 15 min in c#.net please help me ..
  i have done in my code like diz way
  i have did like dis way until upto in class page[RunInstaller(true)]</p>
  
  <pre><code>public class ProjectInstaller : System.Configuration.Install.Installer 
  private System.ServiceProcess.ServiceProcessInstaller 
                                    serviceProcessInstaller1;
  private System.ServiceProcess.ServiceInstaller serviceInstaller1; 
  public ProjectInstaller()
     InitializeComponent();
  } 
  private void InitializeComponent() 
  { 
     this.serviceProcessInstaller1 = 
       new System.ServiceProcess.ServiceProcessInstaller(); 
     this.serviceInstaller1 = 
       new System.ServiceProcess.ServiceInstaller(); 
     this.serviceProcessInstaller1.Account = 
       System.ServiceProcess.ServiceAccount.LocalSystem; 
     this.serviceProcessInstaller1.Password = null;
     this.serviceProcessInstaller1.Username = null; 
     this.serviceInstaller1.ServiceName = "MyNewService"; 
     this.serviceInstaller1.StartType = 
       System.ServiceProcess.ServiceStartMode.Automatic;
  
      this.Installers.AddRange
       (new System.Configuration.Install.Installer[] 
     { 
         this.serviceInstaller1, 
         this.serviceInstaller1});
     }
  }
  </code></pre>