Object Model of a Windows Service Installer
When you create an installer for a .NET Windows Service project, a custom class derived from System.Configuration.Install.Installer will be created. This class, when instantiated, will add to its list of Installers two aggregate instances: a System.ServiceProcess.ServiceProcessInstaller and a System.ServiceProcess.ServiceInstaller. Both inherit also from Installer, through the System.Configuration.Install.ComponentInstaller intermediate base class. Here below is the whole code of the custom class, in a simplified view.

