// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration.Install; using System.ServiceProcess; namespace E { [RunInstaller(true)] public class ProjectInstaller : Installer { private ServiceProcessInstaller spi; private ServiceInstaller si; public ProjectInstaller() { spi = new ServiceProcessInstaller(); si = new ServiceInstaller(); spi.Account = ServiceAccount.LocalService; si.ServiceName = TestService.TestServiceName; Installers.AddRange(new Installer[] { spi, si }); } } }