EnterpriseWebLibrary.InstallationSupportUtility.InstallationModel.ExistingInstallationLogic.InstallServices C# (CSharp) Method

InstallServices() public method

public InstallServices ( ) : void
return void
        public void InstallServices()
        {
            foreach( var service in runtimeConfiguration.WindowsServices ) {
                if( ServiceController.GetServices().Any( sc => sc.ServiceName == service.InstalledName ) )
                    throw new UserCorrectableException( "A service could not be installed because one with the same name already exists." );
                runInstallutil( service, false );
            }
        }