using System.ComponentModel; using System.Configuration.Install; using System.ServiceProcess; namespace TGServerService { /// /// This tells the .msi there is a Windows in this that needs installation /// [RunInstaller(true)] public sealed class ProjectInstaller : Installer { /// /// Construct a /// 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 } }); } } }