Files
MyMcKesson/TomcatServer/RelayServer/Installer.cs
2016-07-27 00:32:34 -04:00

39 lines
1.3 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.ServiceProcess;
namespace Pluto.RelayServer
{
[RunInstaller(true)]
public partial class Installer : System.Configuration.Install.Installer
{
public Installer()
{
InitializeComponent();
ServiceProcessInstaller serviceProcessInstaller = new ServiceProcessInstaller();
ServiceInstaller serviceInstaller = new ServiceInstaller();
//# Service Account Information
serviceProcessInstaller.Account = ServiceAccount.LocalSystem;
serviceProcessInstaller.Username = null;
serviceProcessInstaller.Password = null;
//# Service Information
serviceInstaller.ServiceName = "PlutoRelayServer";
serviceInstaller.DisplayName = "McKesson Mobile Relay Server";
serviceInstaller.Description = "Manages relaying of data updates and retrieval for McKesson's PPS Mobile Solution";
serviceInstaller.StartType = ServiceStartMode.Automatic;
// # Done
this.Installers.Add(serviceProcessInstaller);
this.Installers.Add(serviceInstaller);
}
}
}