Created
          February 7, 2011 02:08 
        
      - 
      
- 
        Save cammerman/813918 to your computer and use it in GitHub Desktop. 
    Installers
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System.Configuration.Install; | |
| using System.ServiceProcess; | |
| namespace HelloSvc.Services | |
| { | |
| internal class GreetServiceInstaller : ServiceInstaller | |
| { | |
| public GreetServiceInstaller() | |
| : base() | |
| { | |
| ServiceName = "Greeter"; | |
| DisplayName = "Greeter"; | |
| Description = "Windows Services Hello World"; | |
| StartType = ServiceStartMode.Automatic; | |
| } | |
| } | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System.Configuration.Install; | |
| using System.ServiceProcess; | |
| namespace HelloSvc.Install | |
| { | |
| internal class HelloServiceProcessInstaller : ServiceProcessInstaller | |
| { | |
| public HelloServiceProcessInstaller() | |
| : base() | |
| { | |
| Account = ServiceAccount.LocalService; | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment