ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/CCSFinger/CCSInstaller.cs
Revision: 725
Committed: 2006-03-31T04:13:36-08:00 (19 years, 3 months ago) by douglas
File size: 865 byte(s)
Log Message:
Service Worky!

File Contents

# User Rev Content
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     }