mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 15:07:03 +01:00
Sanely namespaces the project
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System.ComponentModel;
|
||||
using System.Configuration.Install;
|
||||
using System.ServiceProcess;
|
||||
|
||||
namespace TGS.Server.Service
|
||||
{
|
||||
/// <summary>
|
||||
/// This tells the .msi there is a Windows <see cref="ServiceBase"/> in this <see cref="System.Reflection.Assembly"/> that needs installation
|
||||
/// </summary>
|
||||
[RunInstaller(true)]
|
||||
public sealed class ProjectInstaller : Installer
|
||||
{
|
||||
/// <summary>
|
||||
/// Construct a <see cref="ProjectInstaller"/>
|
||||
/// </summary>
|
||||
public ProjectInstaller()
|
||||
{
|
||||
Installers.AddRange(new Installer[] {
|
||||
new ServiceProcessInstaller
|
||||
{
|
||||
Account = ServiceAccount.LocalSystem,
|
||||
Password = null,
|
||||
Username = null
|
||||
},
|
||||
new ServiceInstaller
|
||||
{
|
||||
Description = "/tg/station Server Service",
|
||||
DisplayName = "TG Station Server",
|
||||
ServiceName = "TG Station Server",
|
||||
StartType = ServiceStartMode.Automatic
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user