You've already forked EventLogLoader
mirror of
https://github.com/romanlryji/EventLogLoader.git
synced 2025-12-03 23:09:42 +02:00
34 lines
973 B
C#
34 lines
973 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Configuration.Install;
|
|
using System.Linq;
|
|
using System.ServiceProcess;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EventLogApp
|
|
{
|
|
[RunInstaller(true)]
|
|
public partial class EventLogServiceInstaller : System.Configuration.Install.Installer
|
|
{
|
|
ServiceInstaller serviceInstaller;
|
|
ServiceProcessInstaller processInstaller;
|
|
|
|
|
|
public EventLogServiceInstaller()
|
|
{
|
|
InitializeComponent();
|
|
|
|
serviceInstaller = new ServiceInstaller();
|
|
processInstaller = new ServiceProcessInstaller();
|
|
|
|
processInstaller.Account = ServiceAccount.LocalSystem;
|
|
serviceInstaller.StartType = ServiceStartMode.Manual;
|
|
serviceInstaller.ServiceName = "EventLogService";
|
|
Installers.Add(processInstaller);
|
|
Installers.Add(serviceInstaller);
|
|
}
|
|
}
|
|
}
|