public GreetServiceInstaller(IServiceNameProvider serviceNameProvider, IEventLogConfigProvider eventLogConfig)
            : base()
        {
            serviceNameProvider.ThrowIfNull("serviceNameProvider");
            var serviceName =
                serviceNameProvider.ServiceName
                    .ThrowIfNullOrEmpty("serviceNameProvider.ServiceName");

            ServiceName = serviceName;
            DisplayName = serviceName;
            Description = "Windows Services Hello World";
            StartType = ServiceStartMode.Automatic;

            var eventLogInstaller =
                Installers
                    .OfType<EventLogInstaller>()
                    .FirstOrDefault();

            if (eventLogInstaller == null)
            {
                eventLogInstaller = new EventLogInstaller();
                Installers.Add(eventLogInstaller);
            }

            eventLogInstaller.UninstallAction = UninstallAction.Remove;
            eventLogInstaller.Log = eventLogConfig.LogName;
            eventLogInstaller.Source = eventLogConfig.SourceName;
        }
        public ArchiServiceInstaller()
        {
            ServiceInstaller serviceInstaller = new ServiceInstaller();
            ServiceProcessInstaller serviceProcessInstaller = new ServiceProcessInstaller();

            serviceInstaller.ServiceName = SharedInfo.ServiceName;
            serviceInstaller.DisplayName = SharedInfo.ServiceName;
            serviceInstaller.Description = SharedInfo.ServiceDescription;

            // Defaulting to only starting when a user starts it, can be easily changed after install
            serviceInstaller.StartType = ServiceStartMode.Manual;

            // System account, requires admin privilege to install
            serviceProcessInstaller.Account = ServiceAccount.LocalSystem;

            serviceInstaller.Installers.Clear();

            EventLogInstaller logInstaller = new EventLogInstaller {
                Log = SharedInfo.EventLog,
                Source = SharedInfo.EventLogSource
            };

            Installers.Add(serviceInstaller);
            Installers.Add(serviceProcessInstaller);
            Installers.Add(logInstaller);
        }
        public SocketServiceInstaller()
        {
            var processInstaller = new ServiceProcessInstaller();
            var serviceInstaller = new ServiceInstaller();

            ////Create Instance of EventLogInstaller
            var myEventLogInstaller = new EventLogInstaller
                                          {Source = "Blazing Sockets Messaging Server", Log = "Application"};

            //// Set the Source of Event Log, to be created.

            //// Set the Log that source is created in

            //set the process privileges
            processInstaller.Account = ServiceAccount.User;

            serviceInstaller.DisplayName = "Blazing Sockets Messaging Server";
            serviceInstaller.StartType = ServiceStartMode.Manual;

            //must be the same as what was set in Program's constructor
            serviceInstaller.ServiceName = "Blazing Sockets Messaging Server";

            Installers.Add(processInstaller);
            Installers.Add(serviceInstaller);
            Installers.Add(myEventLogInstaller);
        }
 protected override ICollection<Installer> CreateInstallers(ICollection<Type> instrumentedTypes)
 {
     IList<Installer> list = new List<Installer>();
     foreach (Type type in instrumentedTypes)
     {
         EventLogDefinitionAttribute attribute = (EventLogDefinitionAttribute) type.GetCustomAttributes(typeof(EventLogDefinitionAttribute), false)[0];
         EventLogInstaller item = new EventLogInstaller {
             Log = attribute.LogName,
             Source = attribute.SourceName,
             CategoryCount = attribute.CategoryCount
         };
         if (attribute.CategoryResourceFile != null)
         {
             item.CategoryResourceFile = attribute.CategoryResourceFile;
         }
         if (attribute.MessageResourceFile != null)
         {
             item.MessageResourceFile = attribute.MessageResourceFile;
         }
         if (attribute.ParameterResourceFile != null)
         {
             item.ParameterResourceFile = attribute.ParameterResourceFile;
         }
         list.Add(item);
     }
     return list;
 }
Exemplo n.º 5
0
        public InstallerSrv()
        {
            string logname = "GranityLog";

            InitializeComponent();
            //��װ��־
            if (EventLog.Exists(logname))
                EventLog.Delete(logname);
            if (EventLog.SourceExists(logname))
                EventLog.DeleteEventSource(logname);
            EventLogInstaller log = new EventLogInstaller();
            log.Source = logname;
            log.Log = logname;
            this.Installers.Add(log);

            //��װ����
            ServiceProcessInstaller prsInstaller = new ServiceProcessInstaller();
            ServiceInstaller srvInstall = new ServiceInstaller();

            // The services run under the system account.
            prsInstaller.Account = ServiceAccount.LocalSystem;
            prsInstaller.Username = null;
            prsInstaller.Password = null;

            // The services are started manually.
            srvInstall.StartType = ServiceStartMode.Automatic;
            srvInstall.ServiceName = "Granity�ļ�����";
            srvInstall.Description = "�Ϻ�����˾��ͣ����ץ��ͼƬ�ļ�����";

            // Add installers to collection. Order is not important.
            Installers.Add(srvInstall);
            Installers.Add(prsInstaller);
        }
Exemplo n.º 6
0
 public TfsDeployerInstaller()
 {
     _processInstaller = new ServiceProcessInstaller();
     this._eventLogInstaller = new System.Diagnostics.EventLogInstaller();
     this._tfsIntegratorInstaller = new System.ServiceProcess.ServiceInstaller();
     //
     // _eventLogInstaller
     //
     this._eventLogInstaller.CategoryCount = 0;
     this._eventLogInstaller.CategoryResourceFile = null;
     this._eventLogInstaller.Log = "Application";
     this._eventLogInstaller.MessageResourceFile = null;
     this._eventLogInstaller.ParameterResourceFile = null;
     this._eventLogInstaller.Source = "Readify.TfsDeployer";
     //
     // _tfsIntegratorInstaller
     //
     this._tfsIntegratorInstaller.DisplayName = "TFS Deployer";
     this._tfsIntegratorInstaller.ServiceName = "TfsDeployer";
     this._tfsIntegratorInstaller.Description = "Performs Deployment for Team Foundation Server";
     this._tfsIntegratorInstaller.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
     _processInstaller.Account = ServiceAccount.LocalSystem;
     this.Installers.Add(_eventLogInstaller);
     this.Installers.Add(_tfsIntegratorInstaller);
     this.Installers.Add(_processInstaller);
 }
 public RevationHistoricServiceInstaller()
 {
     InitializeComponent();
     var eventLogInstaller = new EventLogInstaller();
     eventLogInstaller.Source = EventSource;
     Installers.Add(eventLogInstaller);
 }
Exemplo n.º 8
0
        public WebsiteInstaller()
        {
            InstallerInfo info = InstallerInfo.GetInstallerInfo();

            // Add a default one that we can always fall back to
            EventLogInstaller myEventLogInstaller = new EventLogInstaller();
            myEventLogInstaller.Source = InstallerInfo.DefaultEventLogSource;
            Installers.Add(myEventLogInstaller);

            foreach (EventLogInfo source in info.EventLogInfos)
            {
                myEventLogInstaller = new EventLogInstaller();
                myEventLogInstaller.Source = source.Source;
                Installers.Add(myEventLogInstaller);
            }

            foreach (PerformanceCounterCategoryInfo performanceCounter in info.PerformanceCounterCategoryInfos)
            {
                PerformanceCounterInstaller myCounterInstaller = new PerformanceCounterInstaller();
                myCounterInstaller.CategoryHelp = performanceCounter.CategoryHelp;
                myCounterInstaller.CategoryName = performanceCounter.CategoryName;
                ArrayList counters = new ArrayList();
                foreach (CounterCreationDataInfo creationDataInfo in performanceCounter.CounterCreationDataInfos)
                    counters.Add(new CounterCreationData(creationDataInfo.CounterName, creationDataInfo.CounterHelp,
                                                         creationDataInfo.CounterType));

                myCounterInstaller.Counters.AddRange(
                    (CounterCreationData[]) counters.ToArray(typeof (CounterCreationData)));
                Installers.Add(myCounterInstaller);
            }
        }
Exemplo n.º 9
0
 private void InstallEventSource(string sourceName, string logName)
 {
     EventLogInstaller defaultLogDestinationSinkNameInstaller = new EventLogInstaller();
     defaultLogDestinationSinkNameInstaller.Source = sourceName;
     defaultLogDestinationSinkNameInstaller.Log = logName;
     Installers.Add(defaultLogDestinationSinkNameInstaller);
 }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            ServiceProcessInstaller processInstaller = new ServiceProcessInstaller();
            ServiceInstaller serviceInstaller = new ServiceInstaller();
            EventLogInstaller logInstaller = new EventLogInstaller();

            logInstaller.Log = "Application";
            logInstaller.Source = "sdsupportsvc";

            processInstaller.Account = ServiceAccount.LocalSystem;
            serviceInstaller.StartType = ServiceStartMode.Automatic;

            serviceInstaller.ServiceName = "sdsupportsvc";
            serviceInstaller.DisplayName = "SD Support Host Service";
            serviceInstaller.Description = "Hosts an Azure Net Relay WCF service which support sdsupport.apphb.com";

            for (var t = 0; t < Installers.Count; t++)
            {
                if (Installers[t] is EventLogInstaller)
                {
                    Installers.Remove(Installers[t]);
                    break;
                }
            }

            Installers.Add(logInstaller);
            Installers.Add(processInstaller);
            Installers.Add(serviceInstaller);
            
        }
Exemplo n.º 11
0
        public InstallerWatch()
        {
            InitializeComponent();

            string logname = "GranityWatch";
            //安装日志
            if (EventLog.Exists(logname))
                EventLog.Delete(logname);
            if (EventLog.SourceExists(logname))
                EventLog.DeleteEventSource(logname);
            EventLogInstaller log = new EventLogInstaller();
            log.Source = logname;
            log.Log = logname;
            this.Installers.Add(log);
            //安装服务
            ServiceProcessInstaller prsInstaller = new ServiceProcessInstaller();
            ServiceInstaller watchInstall = new ServiceInstaller();

            // The services run under the system account.
            prsInstaller.Account = ServiceAccount.LocalSystem;
            prsInstaller.Username = null;
            prsInstaller.Password = null;

            // The services are started manually.
            watchInstall.StartType = ServiceStartMode.Automatic;
            watchInstall.ServiceName = "Granity服务守护";
            watchInstall.Description = "上海克立司帝服务守护";

            // Add installers to collection. Order is not important.
            Installers.Add(watchInstall);
            Installers.Add(prsInstaller);
        }
        /// <summary>
        /// CommServer installer
        /// </summary>
        public CommServerInstaller()
        {
            InitializeComponent();
            EventLogInstaller eli = new System.Diagnostics.EventLogInstaller();

            eli.Source = CommServerComponent.Source;
            this.Installers.Add(eli);
        }
Exemplo n.º 13
0
 /// <summary/>
 /// <exclude/>
 public ProjectInstaller()
 {
     EventLogInstaller eventlogInstaller = new EventLogInstaller();
     eventlogInstaller.Log = "Application";
     eventlogInstaller.Source = ExceptionHandlingEvent.EventSourceName;
     Installers.Add(eventlogInstaller);
     InstallEventSource(SR.EntLibExceptionHandlerSource, "Application");
 }
        public override bool IsEquivalentInstaller(ComponentInstaller otherInstaller)
        {
            EventLogInstaller installer = otherInstaller as EventLogInstaller;

            if (installer == null)
            {
                return(false);
            }
            return(installer.Source == this.Source);
        }
Exemplo n.º 15
0
        public EventSourceInstaller()
        {
            // This call is required by the Designer.
              InitializeComponent();

              installer = new EventLogInstaller();
              installer.Source = "NdiWeb";
              installer.Log = "Application";
              Installers.Add(installer);
        }
Exemplo n.º 16
0
 void InstallActions_BeforeInstall(object sender, InstallEventArgs e)
 {
     // before installation, create EventLog source if needed
     if (!EventLog.SourceExists("LogChipper"))
     {
         EventLogInstaller eventLogInstaller = new EventLogInstaller();
         eventLogInstaller.Log = Properties.Settings.Default.eventLogName; // "Application"
         eventLogInstaller.Source = Properties.Settings.Default.eventLogSource; // "LogChipper"
         Installers.Add(eventLogInstaller);
     }
 }
Exemplo n.º 17
0
        public LogInstaller()
        {
            _installer = new EventLogInstaller();
            _installer.CategoryCount = 0;
            _installer.CategoryResourceFile = null;
            _installer.Log = "ВИРД";
            _installer.MessageResourceFile = null;
            _installer.ParameterResourceFile = null;
            _installer.Source = "ВИРД";

            Installers.Add(_installer);
        }
Exemplo n.º 18
0
 public EventSourceInstaller()
 {
     InitializeComponent();
     // Create an instance of an EventLogInstaller.
     mEventLogInstaller = new EventLogInstaller();
     // Set the source name of the event log.
     mEventLogInstaller.Source = ConstantString.BillfoldAppEventSource;
     // Set the event log that the source writes entries to.
     mEventLogInstaller.Log = ConstantString.ApplicationLog;
     // Add myEventLogInstaller to the Installer collection.
     Installers.Add(mEventLogInstaller);
 }
Exemplo n.º 19
0
        public ProjectInstaller()
        {
            InitializeComponent();

            foreach (var source in _sources)
            {
                _customEventLogInstaller = new EventLogInstaller();
                _customEventLogInstaller.Source = source;
                _customEventLogInstaller.Log = _log;
                Installers.Add(_customEventLogInstaller);
            }    
        }
Exemplo n.º 20
0
        /// <summary/>
        /// <param name="eventSource"/>
        /// <param name="counterCategory"/>
        /// <param name="counterCategoryHelp"/>
        /// <param name="counterData"/>
        /// <exclude/>
        protected ProjectInstallerBase(string eventSource, string counterCategory,
                                       string counterCategoryHelp, CounterCreationData[] counterData)
        {
            this.counterCategory = counterCategory;
            this.counterCategoryHelp = counterCategoryHelp;
            this.counterData = counterData;

            EventLogInstaller eventlogInstaller = new EventLogInstaller();
            eventlogInstaller.Log = "Application";
            eventlogInstaller.Source = eventSource;
            Installers.Add(eventlogInstaller);
        }
Exemplo n.º 21
0
        public IGEventLogInstaller()
        {
            //Create Instance of EventLogInstaller
            eventLogInstaller = new EventLogInstaller(); // Set the Source of Event Log, to be created.
            eventLogInstaller.Source = "Session Manager"; // Set the Log that source is created in
            eventLogInstaller.Log = "IGSMService"; // Add myEventLogInstaller to the Installers Collection.
            Installers.Add(eventLogInstaller);

            eventLogInstaller = new EventLogInstaller(); // Set the Source of Event Log, to be created.
            eventLogInstaller.Source = "Web Server"; // Set the Log that source is created in
            eventLogInstaller.Log = "IGSMService"; // Add myEventLogInstaller to the Installers Collection.
            Installers.Add(eventLogInstaller);
        }
Exemplo n.º 22
0
        // Determine if another installer is equivalent to this one.
        public override bool IsEquivalentInstaller
            (ComponentInstaller otherInstaller)
        {
            EventLogInstaller other = (otherInstaller as EventLogInstaller);

            if (other != null)
            {
                if (log == other.log && source == other.source)
                {
                    return(true);
                }
            }
            return(false);
        }
        public WofEventLogInstaller()
        {
            //Create Instance of EventLogInstaller
            wofEventLogInstaller = new EventLogInstaller();

            // Set the Source of Event Log, to be created.
            wofEventLogInstaller.Source = "WaterOneFlow";

            // Set the Log that source is created in
            wofEventLogInstaller.Log = "Application";

            // Add myEventLogInstaller to the Installers Collection.
            Installers.Add(wofEventLogInstaller);
        }
Exemplo n.º 24
0
        public MyEventLogInstaller()
        {
            //Create Instance of EventLogInstaller
            myEventLogInstaller = new EventLogInstaller();

            // Set the Source of Event Log, to be created.
            myEventLogInstaller.Source = "Measurement Studio";

            // Set the Log that source is created in
            myEventLogInstaller.Log = "Application";

            // Add myEventLogInstaller to the Installers Collection.
            Installers.Add(myEventLogInstaller);
        }
        public AidServiceEventLogInstaller()
		{
			//Create Instance of EventLogInstaller
            _eventLogInstaller = new EventLogInstaller();

			// Set the Source of Event Log, to be created.
			_eventLogInstaller.Source = "TEST";

			// Set the Log that source is created in
            _eventLogInstaller.Log = "xQuant.AidSystem";
			
			// Add myEventLogInstaller to the Installers Collection.
			//Installers.Add(eventLogInstaller);
		}
Exemplo n.º 26
0
        protected void SetupEventLog()
        {
            // Create an instance of an EventLogInstaller.
            var eventLogInstaller = new EventLogInstaller();

            // Set the source name of the event log.
            eventLogInstaller.Source = "CmdResp";

            // Set the event log that the source writes entries to.
            eventLogInstaller.Log = "CmdResp";

            // Add eventLogInstaller to the Installer collection.
            Installers.Add(eventLogInstaller);

        }
        public ServerServiceInstaller()
            : base()
        {
            // Add service installer.
            var serviceInstaller = new ServiceInstaller();

            serviceInstaller.ServiceName = ServerService.ServiceName;
            serviceInstaller.DisplayName = "Windows SSH Server";
            serviceInstaller.Description = "Provides SSH (Secure Shell) access to the computer.";
            serviceInstaller.StartType = ServiceStartMode.Automatic;
            serviceInstaller.ServicesDependedOn = new string[] { "tcpip" };

            this.Installers.Add(serviceInstaller);

            // Add service process installer.
            var serviceProcInstaller = new ServiceProcessInstaller();

            serviceProcInstaller.Account = ServiceAccount.LocalSystem;
            serviceProcInstaller.Username = null;
            serviceProcInstaller.Password = null;

            this.Installers.Add(serviceProcInstaller);

            // Add event log installer.
            var eventLogInstaller = new EventLogInstaller();

            //// Check if event log source does not yet exist.
            //if (!EventLog.SourceExists(SshService.EventSourceName))

            // Create event log.
            eventLogInstaller.Source = ServerService.EventSourceName;
            eventLogInstaller.Log = ServerService.EventLogName;
            //eventLogInstaller.MessageResourceFile = _eventLogMessagesFileName;
            //eventLogInstaller.CategoryResourceFile = _eventLogMessagesFileName;
            //eventLogInstaller.CategoryCount = 0;
            //eventLogInstaller.ParameterResourceFile = _eventLogMessagesFileName;
            eventLogInstaller.UninstallAction = UninstallAction.Remove;

            this.Installers.Add(eventLogInstaller);
        }
        protected override ICollection<Installer> CreateInstallers(ICollection<Type> instrumentedTypes)
        {
            IList<Installer> installers = new List<Installer>();

            foreach (Type instrumentedType in instrumentedTypes)
            {
                EventLogDefinitionAttribute attribute
                    = (EventLogDefinitionAttribute)instrumentedType.GetCustomAttributes(typeof(EventLogDefinitionAttribute), false)[0];

                EventLogInstaller installer = new EventLogInstaller();
                installer.Log = attribute.LogName;
                installer.Source = attribute.SourceName;
                installer.CategoryCount = attribute.CategoryCount;
                if (attribute.CategoryResourceFile != null) installer.CategoryResourceFile = attribute.CategoryResourceFile;
                if (attribute.MessageResourceFile != null) installer.MessageResourceFile = attribute.MessageResourceFile;
                if (attribute.ParameterResourceFile != null) installer.ParameterResourceFile = attribute.ParameterResourceFile;

                installers.Add(installer);
            }

            return installers;
        }
        public CronPluginServiceInstaller()
        {
            var processInstaller = new ServiceProcessInstaller();
            var serviceInstaller = new ServiceInstaller();
            var myEventLogInstaller = new EventLogInstaller {Source = "Cron Plugin Service", Log = "Application"};

            //// Set the Source of Event Log, to be created.

            //// Set the Log that source is created in

            //set the privileges
            processInstaller.Account = ServiceAccount.LocalSystem;

            serviceInstaller.DisplayName = "Cron Plugin Service";
            serviceInstaller.StartType = ServiceStartMode.Manual;

            //must be the same as what was set in Program's constructor
            serviceInstaller.ServiceName = "Cron Plugin Service";

            Installers.Add(processInstaller);
            Installers.Add(serviceInstaller);
            Installers.Add(myEventLogInstaller);
        }
        public DNSMEUInstaller()
        {
            InitializeComponent();

            var spi = new ServiceProcessInstaller();

            spi.Account = ServiceAccount.LocalSystem;
            var si = new ServiceInstaller();
            si.StartType = ServiceStartMode.Automatic;

            si.ServiceName = Helper.ProductName;

            Installers.Add(si);
            Installers.Add(spi);

            var eli = new EventLogInstaller();
            eli.Log = "Application";
            eli.Source = Helper.ProductName;

            Installers.Add(eli);

            this.Committed += DNSMEUInstaller_Committed;
        }
        private void ConfigureServiceInstall(ApplicationContext context)
        {
            _serviceInstaller.ServiceName = Guid.NewGuid().ToString();
            _serviceInstaller.StartType = ServiceStartMode.Manual;
            _serviceProcessInstaller.Account = ServiceAccount.LocalSystem;

            context.ConfigureInstall(_serviceInstaller, _serviceProcessInstaller);

            var eventLogInstaller = new EventLogInstaller {Source = _serviceInstaller.ServiceName};

            Installers.AddRange(new Installer[] { _serviceProcessInstaller, _serviceInstaller, eventLogInstaller });
        }
        public ProjectInstaller()
        {
            InitializeComponent();

            // Set service installer and service process installer for our first service
            var svc1 = typeof(ServiceOne).Name;
            this.svcInstaller1.ServiceName = ConfigurationManager.AppSettings[svc1 + ".Name"] ?? svc1;
            this.svcInstaller1.DisplayName = ConfigurationManager.AppSettings[svc1 + ".DisplayName"] ?? svc1;
            this.svcInstaller1.Description = ConfigurationManager.AppSettings[svc1 + ".Description"] ?? string.Empty;
            this.svcInstaller1.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
            this.svcpInstaller1.Account = ServiceAccount.LocalSystem;

            // Remove the default event log installer. We want to use custom events log name and source.
            this.svcInstaller1.Installers.Clear();

            // Define the event log name that will be used by all our services.
            var eventLogName = ConfigurationManager.AppSettings["EventLogName"] ?? "Application";
            var eventSource = this.svcInstaller1.ServiceName;

            // Delete event log and source, if already existing. Then re-create.
            if (EventLog.Exists(eventLogName))
                EventLog.Delete(eventLogName);
            if (EventLog.SourceExists(eventSource))
                EventLog.DeleteEventSource(eventSource);
            EventLog.CreateEventSource(eventSource, eventLogName);
            
            // Create event source and event log
            EventLogInstaller logInstaller1 = new EventLogInstaller();
            logInstaller1.Source = this.svcInstaller1.ServiceName;
            logInstaller1.Log = eventLogName;

            // Set service installer and service process installer for our second service
            var svc2 = typeof(ServiceTwo).Name;
            this.svcInstaller2.ServiceName = ConfigurationManager.AppSettings[svc2 + ".Name"] ?? svc2;
            this.svcInstaller2.DisplayName = ConfigurationManager.AppSettings[svc2 + ".DisplayName"] ?? svc2;
            this.svcInstaller2.Description = ConfigurationManager.AppSettings[svc2 + ".Description"] ?? string.Empty;
            this.svcInstaller2.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
            this.svcpInstaller2.Account = ServiceAccount.LocalSystem;

            // Remove the default event log installer. We want to use custom events log name and source.
            this.svcInstaller2.Installers.Clear();

            // Delete event source, if already existing. Then re-create.
            eventSource = this.svcInstaller2.ServiceName;
            if (EventLog.SourceExists(eventSource))
                EventLog.DeleteEventSource(eventSource);
            EventLog.CreateEventSource(eventSource, eventLogName);

            // Create event source and event log
            EventLogInstaller logInstaller2 = new EventLogInstaller();
            logInstaller2.Source = this.svcInstaller2.ServiceName;
            logInstaller2.Log = eventLogName;

            // 
            // ProjectInstaller
            // 
            this.Installers.AddRange(
                new Installer[] {
                this.svcpInstaller1,
                this.svcInstaller1,
                logInstaller1,
                this.svcpInstaller2,
                this.svcInstaller2,
                logInstaller2
            });

        }
Exemplo n.º 33
0
 public InstallEventLog()
 {
     var eventLogInstaller = new EventLogInstaller {Source = EventSource};
     Installers.Add(eventLogInstaller);
 }