websitepanel/WebsitePanel/Sources/WebsitePanel.SchedulerService/SchedulerServiceInstaller.cs
2013-05-03 17:29:25 +03:00

28 lines
No EOL
866 B
C#

using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;
namespace WebsitePanel.SchedulerService
{
[RunInstaller(true)]
public class SchedulerServiceInstaller : Installer
{
#region Constructor
public SchedulerServiceInstaller()
{
var processInstaller = new ServiceProcessInstaller();
var serviceInstaller = new ServiceInstaller();
processInstaller.Account = ServiceAccount.LocalSystem;
serviceInstaller.DisplayName = "WebsitePanel Scheduler";
serviceInstaller.StartType = ServiceStartMode.Automatic;
serviceInstaller.ServiceName = "WebsitePanlel Scheduler";
Installers.Add(processInstaller);
Installers.Add(serviceInstaller);
}
#endregion
}
}