1 |
douglas |
725 |
// Douglas Thrift |
2 |
|
|
// |
3 |
|
|
// CCS Computer Science |
4 |
|
|
// |
5 |
|
|
// Service Installer |
6 |
|
|
|
7 |
|
|
using System; |
8 |
|
|
using System.ComponentModel; |
9 |
|
|
using System.Configuration.Install; |
10 |
|
|
using System.ServiceProcess; |
11 |
|
|
|
12 |
|
|
[RunInstallerAttribute(true)] |
13 |
|
|
public class CCSInstaller : Installer |
14 |
|
|
{ |
15 |
|
|
private ServiceProcessInstaller process = new ServiceProcessInstaller(); |
16 |
|
|
private ServiceInstaller service = new ServiceInstaller(); |
17 |
|
|
|
18 |
|
|
public CCSInstaller() |
19 |
|
|
{ |
20 |
|
|
process.Account = ServiceAccount.User; |
21 |
|
|
process.Username = Environment.MachineName + @"\douglas"; |
22 |
|
|
service.Description = "Provides user information."; |
23 |
|
|
service.DisplayName = "CCS Finger"; |
24 |
|
|
service.ServiceName = "CCSFinger"; |
25 |
|
|
service.ServicesDependedOn = new string[] { "lanmanworkstation", "TermService" }; |
26 |
|
|
service.StartType = ServiceStartMode.Automatic; |
27 |
|
|
|
28 |
|
|
Installers.Add(process); |
29 |
|
|
Installers.Add(service); |
30 |
|
|
} |
31 |
|
|
} |