Let's just get this merged instead of having a massive PR

Original PR: tgstation/tgstation#26534
This commit is contained in:
Jordan Brown
2017-06-01 13:06:42 +12:00
committed by oranges
parent 3e2f7329b1
commit 8c6d31f394
72 changed files with 15890 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;
namespace ServerService
{
[RunInstaller(true)]
public partial class ProjectInstaller : Installer
{
public ProjectInstaller()
{
InitializeComponent();
serviceInstaller1.BeforeUninstall += ServiceInstaller1_BeforeUninstall;
}
private void ServiceInstaller1_BeforeUninstall(object sender, InstallEventArgs e)
{
}
private void ServiceInstaller1_AfterInstall(object sender, InstallEventArgs e)
{
using (ServiceController sc = new ServiceController(serviceInstaller1.ServiceName))
{
sc.Start();
}
}
}
}