public Route53DDNSServiceInstaller()
    {
        processInstaller = new ServiceProcessInstaller();
        serviceInstaller = new ServiceInstaller();

        processInstaller.Account = ServiceAccount.LocalSystem;
        serviceInstaller.StartType = ServiceStartMode.Automatic;
        serviceInstaller.ServiceName = "Route53DDNSService";

        Installers.Add(serviceInstaller);
        Installers.Add(processInstaller);
    }
Ejemplo n.º 2
0
    public TreeBeardInstaller()
    {
        processInstaller = new ServiceProcessInstaller();
        serviceInstaller = new ServiceInstaller();

        processInstaller.Account = ServiceAccount.LocalSystem;
        serviceInstaller.StartType = ServiceStartMode.Manual;
        serviceInstaller.ServiceName = "TreeBeard"; //must match TreeBeardService.ServiceName

        Installers.Add(serviceInstaller);
        Installers.Add(processInstaller);
    }
Ejemplo n.º 3
0
    public CronInstaller()
    {
        processInstaller = new ServiceProcessInstaller();
        serviceInstaller = new ServiceInstaller();

        processInstaller.Account = ServiceAccount.LocalSystem;
        serviceInstaller.StartType = ServiceStartMode.Manual;
        serviceInstaller.ServiceName = "Cron";

        Installers.Add(serviceInstaller);
        Installers.Add(processInstaller);
    }
    public CronInstaller()
    {
        processInstaller = new ServiceProcessInstaller();
        serviceInstaller = new ServiceInstaller();

        processInstaller.Account = ServiceAccount.LocalSystem;
        serviceInstaller.StartType = ServiceStartMode.Automatic;
        serviceInstaller.ServiceName = "WIFI_DOOR_LOCK";

        Installers.Add(serviceInstaller);
        Installers.Add(processInstaller);
    }
Ejemplo n.º 5
0
        private void Initialize()
        {
            var process = new ServiceProcessInstaller {
                Account = ServiceAccount.LocalSystem
            };

            var service = new ServiceInstaller
            {
                ServiceName = ServiceConfig.ServiceName,
                DisplayName = ServiceConfig.DisplayName,
                Description = ServiceConfig.Description,
                StartType   = ServiceStartMode.Automatic
            };

            Installers.Add(process);
            Installers.Add(service);
            Committed += ReportServiceInstaller_Committed;
        }
        protected AdvancedServiceBase(string serviceName)
        {
            // Instantiate installer for process and service.
            ServiceProcessInstaller processInstaller = new ServiceProcessInstaller();

            ServiceInstaller serviceInstaller = new ServiceInstaller();

            processInstaller.Account     = Account;
            serviceInstaller.StartType   = StartType;
            serviceInstaller.ServiceName = serviceName;

            // Set the dependencies.
            serviceInstaller.ServicesDependedOn = EnumerateDependencies().ToArray();

            // Add installer to collection. Order is not important if more than one service.
            Installers.Add(serviceInstaller);
            Installers.Add(processInstaller);
        }
        public ServiceInstaller()
        {
            InitializeComponent();
            processInstaller = new ServiceProcessInstaller();
            serviceInstaller = new System.ServiceProcess.ServiceInstaller();

            // Service will run under system account
            processInstaller.Account = ServiceAccount.LocalSystem;

            // Service will have Start Type of Manual
            serviceInstaller.StartType = ServiceStartMode.Automatic;

            serviceInstaller.ServiceName = "Windows Automatic Start Service";

            Installers.Add(serviceInstaller);
            Installers.Add(processInstaller);
            serviceInstaller.AfterInstall += ServiceInstaller_AfterInstall;
        }
        internal RbrServiceInstaller(string[] pDependedOn, string pVersion)
        {
            var _spi = new ServiceProcessInstaller();

            _spi.Account  = ServiceAccount.LocalSystem;
            _spi.Password = null;
            _spi.Username = null;

            var _si = new ServiceInstaller();

            _si.ServiceName        = "Timok.Rbr.WebAPI." + pVersion;
            _si.DisplayName        = "Timok.Rbr.WebAPI." + pVersion;
            _si.StartType          = ServiceStartMode.Automatic;
            _si.ServicesDependedOn = pDependedOn;

            Installers.Add(_spi);
            Installers.Add(_si);
        }
        public FileProcessorServiceInstaller()
        {
            var serviceInstaller = new ServiceInstaller();

            serviceInstaller.StartType   = ServiceStartMode.Manual;
            serviceInstaller.ServiceName = FileProcessor.SericeName;
            serviceInstaller.DisplayName = FileProcessor.SericeName;

            Installers.Add(serviceInstaller);

            var processInstaller = new ServiceProcessInstaller();

            processInstaller.Account  = ServiceAccount.User;
            processInstaller.Username = @".\Дмитрий";
            processInstaller.Password = "******";

            Installers.Add(processInstaller);
        }
Ejemplo n.º 10
0
        public MyServiceInstaller()
        {
            var processInstaller = new ServiceProcessInstaller
            {
                Account = ServiceAccount.LocalSystem
            };

            var serviceInstaller = new ServiceInstaller
            {
                StartType   = ServiceStartMode.Automatic,
                ServiceName = ServiceName,
                DisplayName = DisplayName,
                Description = Description
            };

            Installers.Add(serviceInstaller);
            Installers.Add(processInstaller);
        }
Ejemplo n.º 11
0
        public ServicesInstaller()
        {
            try
            {
                process         = new ServiceProcessInstaller();
                process.Account = ServiceAccount.LocalSystem;
                var installer = new ServiceInstaller();
                installer.ServiceName = "Smart CRM - Smart Search Processor";
                installer.Description = "Process Smart Search Contacts Processor";
                installer.StartType   = ServiceStartMode.Automatic;

                Installers.Add(process);
                Installers.Add(installer);
            }
            catch (Exception ex)
            {
            }
        }
Ejemplo n.º 12
0
        /// <summary>
        /// Public Constructor for WindowsServiceInstaller.
        /// - Put all of your Initialization code here.
        /// </summary>
        public WindowsServiceInstaller()
        {
            var serviceProcessInstaller = new ServiceProcessInstaller();
            var serviceInstaller        = new ServiceInstaller();

            //# Service Account Information
            serviceProcessInstaller.Account = ServiceAccount.LocalService;

            //# Service Information
            serviceInstaller.DisplayName = "HiveFive Email Service";
            serviceInstaller.StartType   = ServiceStartMode.Manual;
            serviceInstaller.Description = "Service for sending emails";
            //# This must be identical to the WindowsService.ServiceBase name
            //# set in the constructor of WindowsService.cs
            serviceInstaller.ServiceName = "HiveFive.EmailService";
            Installers.Add(serviceProcessInstaller);
            Installers.Add(serviceInstaller);
        }
        private ServiceProcessInstaller ConfigureProcessInstaller()
        {
            var result = new ServiceProcessInstaller();

            if (string.IsNullOrEmpty(Configuration.UserName))
            {
                result.Account  = ServiceAccount.LocalService;
                result.Username = null;
                result.Password = null;
            }
            else
            {
                result.Account  = ServiceAccount.User;
                result.Username = Configuration.UserName;
                result.Password = Configuration.Password;
            }
            return(result);
        }
Ejemplo n.º 14
0
        public PFWServiceInstaller()
        {
            // This call is required by the Designer.
            InitializeComponent();

            ServiceProcessInstaller process = new ServiceProcessInstaller();

            process.Account = ServiceAccount.LocalSystem;

            ServiceInstaller serviceAdmin = new ServiceInstaller();

            serviceAdmin.StartType          = ServiceStartMode.Automatic;
            serviceAdmin.ServiceName        = Utils.SERVICE_NAME;
            serviceAdmin.ServicesDependedOn = new string[] { "Print Spooler" };

            Installers.Add(process);
            Installers.Add(serviceAdmin);
        }
Ejemplo n.º 15
0
        public ListenerInstaller()
        {
            //InitializeComponent();
            ServiceProcessInstaller serviceProcessInstaller = new ServiceProcessInstaller();
            ServiceInstaller        serviceInstaller        = new ServiceInstaller();

            //# Service Account Information
            serviceProcessInstaller.Account  = ServiceAccount.LocalSystem;
            serviceProcessInstaller.Username = null;
            serviceProcessInstaller.Password = null;

            SetServicePropertiesFromCommandLine(serviceInstaller);

            //# Service Information
            serviceInstaller.StartType = ServiceStartMode.Automatic;
            this.Installers.Add(serviceProcessInstaller);
            this.Installers.Add(serviceInstaller);
        }
Ejemplo n.º 16
0
        public InternalInstaller()
        {
            InitializeComponent();

            serviceProcessInstaller1 = new ServiceProcessInstaller();
            serviceInstaller1        = new ServiceInstaller();

            // Force request for login at install
            serviceProcessInstaller1.Password = null;
            serviceProcessInstaller1.Username = null;

            serviceInstaller1.ServiceName = "TestService";

            Installers.AddRange(new Installer[] {
                serviceProcessInstaller1,
                serviceInstaller1
            });
        }
Ejemplo n.º 17
0
        public MSWindowsServiceInstaller()
        {
            ServiceProcessInstaller processInstaller = new ServiceProcessInstaller();

            System.ServiceProcess.ServiceInstaller serviceInstaller = new System.ServiceProcess.ServiceInstaller();

            //set the privileges
            processInstaller.Account = ServiceAccount.LocalSystem;

            serviceInstaller.DisplayName = "WSS";
            serviceInstaller.StartType   = ServiceStartMode.Automatic;

            //must be the same as what was set in Program's constructor
            serviceInstaller.ServiceName = "WSS";

            this.Installers.Add(processInstaller);
            this.Installers.Add(serviceInstaller);
        }
Ejemplo n.º 18
0
        public MyWinServiceInstaller()
        {
            ServiceProcessInstaller serviceProcessInstaller = new ServiceProcessInstaller();
            ServiceInstaller        serviceInstaller        = new ServiceInstaller();

            //# Service Account Information

            serviceProcessInstaller.Account  = ServiceAccount.LocalSystem;
            serviceProcessInstaller.Username = null;
            serviceProcessInstaller.Password = null;

            serviceInstaller.DisplayName = "VNM_VClip_SpamSms";
            serviceInstaller.StartType   = ServiceStartMode.Manual;
            serviceInstaller.ServiceName = "VNM_VClip_SpamSms";

            this.Installers.Add(serviceProcessInstaller);
            this.Installers.Add(serviceInstaller);
        }
        void Init()
        {
            var processInstaller = new ServiceProcessInstaller
            {
                Account = ServiceAccount.NetworkService
            };

            var serviceInstaller = new ServiceInstaller
            {
                StartType        = ServiceStartMode.Automatic,
                DelayedAutoStart = true,
                ServiceName      = RelayBridgeServiceInstaller.ServiceName,
                DisplayName      = RelayBridgeServiceInstaller.ServiceName,
            };

            Installers.Add(serviceInstaller);
            Installers.Add(processInstaller);
        }
Ejemplo n.º 20
0
        public ServicesInstaller()
        {
            try
            {
                process         = new ServiceProcessInstaller();
                process.Account = ServiceAccount.LocalSystem;
                var installer = new ServiceInstaller();
                installer.ServiceName = "Smart CRM - API Lead Submission Processor";
                installer.Description = "Process API Submission Leads";
                installer.StartType   = ServiceStartMode.Automatic;

                Installers.Add(process);
                Installers.Add(installer);
            }
            catch
            {
            }
        }
Ejemplo n.º 21
0
        public ProjectInstaller()
        {
            ServiceProcessInstaller serviceProcessInstaller =
                new ServiceProcessInstaller();
            ServiceInstaller serviceInstaller = new ServiceInstaller();

            //serviceProcessInstaller.Account = ServiceAccount.LocalService;
            //serviceProcessInstaller.Account = ServiceAccount.User;
            serviceProcessInstaller.Account = ServiceAccount.LocalSystem;

            serviceInstaller.ServiceName = MojaUsluga.NazwaUslugi;
            serviceInstaller.StartType   = ServiceStartMode.Manual;
            serviceInstaller.DisplayName = "Mój Chat";
            serviceInstaller.Description = "Chat - usługa - stworzona \"od zera\"";

            this.Installers.Add(serviceProcessInstaller);
            this.Installers.Add(serviceInstaller);
        }
        public AdapterInstaller()
        {
            InitializeComponent();

            var serviceProcessInstaller = new ServiceProcessInstaller();
            var serviceInstaller        = new ServiceInstaller();

            serviceProcessInstaller.Account  = ServiceAccount.LocalSystem;
            serviceProcessInstaller.Username = null;
            serviceProcessInstaller.Password = null;

            serviceInstaller.DisplayName = "Sporting Solutions Adapter";
            serviceInstaller.StartType   = ServiceStartMode.Manual;
            serviceInstaller.ServiceName = "SS.Integration.Adapter";

            this.Installers.Add(serviceProcessInstaller);
            this.Installers.Add(serviceInstaller);
        }
Ejemplo n.º 23
0
        public IntelStatusSenderInstaller()
        {
            var serviceProcessInstaller = new ServiceProcessInstaller();
            var serviceInstaller        = new ServiceInstaller();

            serviceProcessInstaller.Account  = ServiceAccount.LocalSystem;
            serviceProcessInstaller.Username = null;
            serviceProcessInstaller.Password = null;

            serviceInstaller.DisplayName = "Интеграция - Отправитель статусов";
            serviceInstaller.StartType   = ServiceStartMode.Automatic;
            serviceInstaller.ServiceName = IntelStatusSenderService.Name;
            serviceInstaller.Description = "Передача статусов от НИИС";

            Installers.Add(serviceProcessInstaller);
            Installers.Add(serviceInstaller);
            InitializeComponent();
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.serviceProcessInstaller = new System.ServiceProcess.ServiceProcessInstaller();
     this.serviceInstaller        = new System.ServiceProcess.ServiceInstaller();
     //
     // serviceProcessInstaller
     //
     this.serviceProcessInstaller.Password = null;
     this.serviceProcessInstaller.Username = null;
     //
     // ProjectInstaller
     //
     this.Installers.AddRange(new System.Configuration.Install.Installer[]
     {
         this.serviceProcessInstaller,
         this.serviceInstaller
     });
 }
Ejemplo n.º 25
0
        private void InstallingService()
        {
            ServiceProcessInstaller process = new ServiceProcessInstaller();

            process.Account = ServiceAccount.LocalSystem;

            ServiceInstaller serviceAdmin = new ServiceInstaller();

            serviceAdmin.StartType = ServiceStartMode.Automatic;
            string sServiceName = Path.GetFileNameWithoutExtension(AppDomain.CurrentDomain.FriendlyName);

            serviceAdmin.ServiceName = sServiceName;
            serviceAdmin.DisplayName = sServiceName;
            serviceAdmin.Description = sServiceName;

            Installers.Add(process);
            Installers.Add(serviceAdmin);
        }
Ejemplo n.º 26
0
        public ServicesInstaller()
        {
            try
            {
                process         = new ServiceProcessInstaller();
                process.Account = ServiceAccount.LocalSystem;
                var installer = new ServiceInstaller();
                installer.ServiceName = "Smart CRM - Litmus Test Processor";
                installer.Description = "Process litmus test requests";
                installer.StartType   = ServiceStartMode.Automatic;

                Installers.Add(process);
                Installers.Add(installer);
            }
            catch (Exception ex)
            {
            }
        }
        /// <summary>
        /// Public Constructor for WindowsServiceInstaller.
        /// - Put all of your Initialization code here.
        /// </summary>
        public WindowsServiceInstaller()
        {
            var serviceProcessInstaller = new ServiceProcessInstaller();
            var serviceInstaller        = new ServiceInstaller();

            //# Service Account Information
            serviceProcessInstaller.Account = ServiceAccount.LocalService;

            //# Service Information
            serviceInstaller.DisplayName = "Cryptopia.IntegrationService";
            serviceInstaller.StartType   = ServiceStartMode.Manual;
            serviceInstaller.Description = "Cryptopia.IntegrationService";
            //# This must be identical to the WindowsService.ServiceBase name
            //# set in the constructor of WindowsService.cs
            serviceInstaller.ServiceName = "Cryptopia.IntegrationService";
            this.Installers.Add(serviceProcessInstaller);
            this.Installers.Add(serviceInstaller);
        }
Ejemplo n.º 28
0
        public ProjectInstaller()
        {
            InitializeComponent();
            ServiceProcessInstaller serviceProcessInstaller = new ServiceProcessInstaller();
            ServiceInstaller        serviceInstaller        = new ServiceInstaller();

            serviceProcessInstaller.Account  = ServiceAccount.LocalSystem;
            serviceProcessInstaller.Username = null;
            serviceProcessInstaller.Password = null;

            serviceInstaller.DisplayName = "BiblosDS_StampaConformeServiceConverter_" + Properties.Settings.Default.ServiceName;
            serviceInstaller.StartType   = ServiceStartMode.Automatic;
            serviceInstaller.ServiceName = "BiblosDS_StampaConformeServiceConverter_" + Properties.Settings.Default.ServiceName;
            serviceInstaller.Description = "BiblosDS Server di conversione di stampa conforme (VecompSoftware)";

            this.Installers.Add(serviceProcessInstaller);
            this.Installers.Add(serviceInstaller);
        }
Ejemplo n.º 29
0
        public ProjectInstaller()
        {
            InitializeComponent();
            ServiceProcessInstaller spi = new ServiceProcessInstaller();

            spi.Account = ServiceAccount.LocalSystem;//设置服务要运行在什么类型的账号
            //这里可以创建多个ServiceInstaller实例
            ServiceInstaller si = new ServiceInstaller();

            si.ServiceName = "WMSDocumentSynchronizationService"; //系统操作服务的标识,要和ServiceBase中设置的ServiceName属性值相同
            si.DisplayName = "WMSDocumentSynchronizationService"; //展示给用户的服务名,即在控制面板中看到的服务名
            si.Description = "从ERP同步单据至WMS服务";
            si.StartType   = ServiceStartMode.Automatic;          //服务的启动方式,这里设置为自动

            //最后记得把创建的实例添加到安装列表中
            this.Installers.Add(si);
            this.Installers.Add(spi);
        }
Ejemplo n.º 30
0
 public WCFServiceInstaller()
 {
     InitializeComponent();
     _serviceProcessInstaller          = new ServiceProcessInstaller();
     _serviceInstaller                 = new ServiceInstaller();
     _serviceProcessInstaller.Account  = ServiceAccount.LocalSystem;
     _serviceProcessInstaller.Password = null;
     _serviceProcessInstaller.Username = null;
     _serviceInstaller.ServiceName     = NotesWCFService.CurrentServiceName;
     _serviceInstaller.DisplayName     = NotesWCFService.CurrentServiceDisplayName;
     _serviceInstaller.Description     = NotesWCFService.CurrentServiceDescription;
     _serviceInstaller.StartType       = ServiceStartMode.Automatic;
     Installers.AddRange(new Installer[]
     {
         _serviceProcessInstaller,
         _serviceInstaller
     });
 }
Ejemplo n.º 31
0
        public ProjectInstaller()
        {
            InitializeComponent();

            this.serviceProcessInstaller = new System.ServiceProcess.ServiceProcessInstaller();
            this.serviceInstaller        = new System.ServiceProcess.ServiceInstaller();

            this.serviceProcessInstaller.Password = null;
            this.serviceProcessInstaller.Username = null;
            this.serviceProcessInstaller.Account  = ServiceAccount.LocalSystem;

            this.serviceInstaller.ServiceName = "Wingnut Service";

            this.Installers.AddRange(new System.Configuration.Install.Installer[] {
                this.serviceProcessInstaller,
                this.serviceInstaller
            });
        }
Ejemplo n.º 32
0
        public WindowsServiceInstaller()
        {
            Lithnet.MetadirectoryServices.Resolver.MmsAssemblyResolver.RegisterResolver();

            InitializeComponent();

            ServiceProcessInstaller process = new ServiceProcessInstaller();

            process.Account = ServiceAccount.User;
            ServiceInstaller service = new ServiceInstaller();

            service.ServiceName = "acma";
            service.DisplayName = "ACMA Service";
            service.StartType   = ServiceStartMode.Automatic;

            Installers.Add(process);
            Installers.Add(service);
        }
Ejemplo n.º 33
0
        public HostServiceInstaller()
        {
            TryGetServiceName();

            ServiceProcessInstaller processInstaller = new ServiceProcessInstaller {
                Account = ServiceAccount.LocalSystem
            };

            ServiceInstaller hostServiceInstaller = new ServiceInstaller
            {
                StartType   = ServiceStartMode.Manual,
                ServiceName = ServiceName,
                Description = ServiceName,
            };

            Installers.Add(hostServiceInstaller);
            Installers.Add(processInstaller);
        }
Ejemplo n.º 34
0
        public Installer()
        {
            InitializeComponent();

            var processInstaller = new ServiceProcessInstaller()
            {
                Account = ServiceAccount.LocalSystem
            };
            var serviceInstaller = new ServiceInstaller()
            {
                ServiceName = ConfigurationManager.AppSettings["ServiceName"],
                Description = "Provides convertion rates for currencies",
                StartType   = ServiceStartMode.Automatic
            };

            this.Installers.Add(serviceInstaller);
            this.Installers.Add(processInstaller);
        }
Ejemplo n.º 35
0
    public PlasmaServersInstaller()
    {
        // Instantiate installers for process and services.
        processInstaller = new ServiceProcessInstaller();
        serviceInstaller1 = new ServiceInstaller();

        // The services run under the system account.
        processInstaller.Account = ServiceAccount.LocalSystem;

        // The services are started manually.
        serviceInstaller1.StartType = ServiceStartMode.Manual;

        // ServiceName must equal those on ServiceBase derived classes.
        serviceInstaller1.ServiceName = "PlasmaServers";

        // Add installers to collection. Order is not important.
        Installers.Add(serviceInstaller1);
        Installers.Add(processInstaller);
    }
Ejemplo n.º 36
0
    public VersaServiceInstaller()
    {
	spi = new ServiceProcessInstaller(); 
	si = new ServiceInstaller(); 

	// if auth, leave these alone and the ServiceInstaller should prompt
	// for authorization.
	if (!auth)
	{
	    spi.Account = ServiceAccount.LocalSystem; 
	    spi.Password = null;
	    spi.Username = null;
	}

	si.ServiceName = servname;
	si.Description = "Provides a secure connection to SQL Server";
	si.StartType = ServiceStartMode.Automatic;
	
	Installers.AddRange(new Installer[] { si, spi });
    }
Ejemplo n.º 37
0
	public MuninNodeInstaller() : base() {
		ServiceInstaller TSSI = new ServiceInstaller();
		TSSI.ServiceName = "MuninNode";
		TSSI.DisplayName = "MuninNode";
		TSSI.StartType = ServiceStartMode.Automatic;
		this.Installers.Add(TSSI);
		
		ServiceProcessInstaller TSPI = new ServiceProcessInstaller();
		TSPI.Account = ServiceAccount.LocalSystem;
		this.Installers.Add(TSPI);
	}
 public void ConfigureServiceProcessInstaller(ServiceProcessInstaller installer)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 39
0
    public ProjectInstaller()
    {
        ServiceProcessInstaller spi = new ServiceProcessInstaller();
        spi.Account = ServiceAccount.LocalSystem;

        ServiceInstaller si = new ServiceInstaller();
        si.DisplayName = "SharpPrivacy OpenPGP Service";
        si.ServiceName = "SharpPrivacySrv";
        si.StartType = ServiceStartMode.Automatic;

        Installers.AddRange(new Installer[] {spi, si});
    }