// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.ServiceProcess;
namespace Tools.CrashReporter.CrashReportProcess
{
///
/// The containing class for the Crash Report Processor installer.
///
[RunInstaller( true )]
public partial class CrashReportProcessServiceInstaller : System.Configuration.Install.Installer
{
private ServiceInstaller Installer;
private ServiceProcessInstaller ProcessInstaller;
///
/// The installer to handle the installation of the Crash Report Processor service.
///
public CrashReportProcessServiceInstaller()
{
InitializeComponent();
Installer = new ServiceInstaller();
Installer.StartType = ServiceStartMode.Automatic;
Installer.ServiceName = "CrashReportProcessService";
Installer.DisplayName = "CrashReport Processor Service";
Installer.Description = "A web service that processes crash reports for display on the crash report website.";
Installers.Add( Installer );
ProcessInstaller = new ServiceProcessInstaller();
ProcessInstaller.Account = ServiceAccount.NetworkService;
Installers.Add( ProcessInstaller );
}
///
/// Must exists, because installation will fail without it.
///
/// Dictionary to pass down to the base class.
public override void Install( IDictionary StateSaver )
{
base.Install( StateSaver );
}
}
}