[SHELL32]
[reactos.git] / irc / TechBot / TechBot / ProjectInstaller.cs
1 using System;
2 using System.ComponentModel;
3 using System.ServiceProcess;
4 using System.Configuration.Install;
5 using System.Collections.Generic;
6 using System.Text;
7
8 namespace TechBot
9 {
10 [RunInstaller(true)]
11 public class ProjectInstaller : Installer
12 {
13 public ProjectInstaller()
14 {
15 ServiceProcessInstaller spi = null;
16 ServiceInstaller si = null;
17
18 spi = new ServiceProcessInstaller();
19 spi.Account = ServiceAccount.LocalSystem;
20
21 si = new ServiceInstaller();
22 si.ServiceName = "TechBot";
23 si.StartType = ServiceStartMode.Automatic;
24
25 Installers.AddRange(new Installer[] { spi, si });
26 }
27 }
28 }