28 lines
No EOL
866 B
C#
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
|
|
}
|
|
} |