Skip to content

Instantly share code, notes, and snippets.

@cammerman
Created February 7, 2011 02:08
Show Gist options
  • Save cammerman/813918 to your computer and use it in GitHub Desktop.
Save cammerman/813918 to your computer and use it in GitHub Desktop.
Installers
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;
}
}
}
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