Example #1
0
        /// <summary>
        /// Constructs an AppInstaller instance.
        /// </summary>
        public AppInstaller()
        {
            InitializeComponent();
            Helper.Init(Assembly.GetExecutingAssembly());

            installFolder = Helper.GetAssemblyFolder(Assembly.GetExecutingAssembly());

            //-----------------------------------------------------------------
            // Add a LillTek InstallTools installer instance.

            installTools = new InstallTools(Const.ConfigServiceName + " Setup", installFolder, "ConfigServiceInstall.ini");
            this.Installers.Add(installTools);

            //-----------------------------------------------------------------
            // Add the Windows Service Installer

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

            this.serviceInstaller.DisplayName      = Const.ConfigServiceName;
            this.serviceInstaller.ServiceName      = Const.ConfigServiceName;
            this.serviceInstaller.StartType        = ServiceStartMode.Automatic;
            this.serviceInstaller.DelayedAutoStart = true;

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

            this.Installers.AddRange(new System.Configuration.Install.Installer[]
            {
                this.serviceProcessInstaller,
                this.serviceInstaller
            });

            //-----------------------------------------------------------------
            // Do some work that the service installer is too stupid to do.

            // Start the service after setup terminates.

            installTools.StartService(Const.ConfigServiceName);

            // Add the service description to the registry.

            installTools.AddRegValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\" + Const.ConfigServiceName + @":Description",
                                     "Implements the global datacenter configuration service.");

            //-----------------------------------------------------------------
            // Build up the set of performance counters to be installed.

            // $todo(jeff.lill): Configure performance counters.
        }
Example #2
0
        /// <summary>
        /// Constructs an AppInstaller instance.
        /// </summary>
        public AppInstaller()
        {
            InitializeComponent();
            Helper.Init(Assembly.GetExecutingAssembly());

            installFolder = Helper.GetAssemblyFolder(Assembly.GetExecutingAssembly());

            //-----------------------------------------------------------------
            // Add a LillTek InstallTools installer instance.

            installTools = new InstallTools(Const.BroadcastServerName + " Setup", installFolder, "BroadcastServerInstall.cmd");
            this.Installers.Add(installTools);

            //-----------------------------------------------------------------
            // Add the Windows Service Installer

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

            this.serviceInstaller.DisplayName      = Const.BroadcastServerName;
            this.serviceInstaller.ServiceName      = Const.BroadcastServerName;
            this.serviceInstaller.StartType        = ServiceStartMode.Automatic;
            this.serviceInstaller.DelayedAutoStart = true;


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

            this.Installers.AddRange(new System.Configuration.Install.Installer[]
            {
                this.serviceProcessInstaller,
                this.serviceInstaller
            });

            //-----------------------------------------------------------------
            // Do some work that the service installer is too stupid to do.

            // Start the service after setup terminates.

            installTools.StartService(Const.BroadcastServerName);

            // Add the service description to the registry.

            installTools.AddRegValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\" + Const.BroadcastServerName + @":Description",
                                     "Implements UDP broadcasting for networks that do not support multicast or native UDP broadcast.");
        }
Example #3
0
        /// <summary>
        /// Constructs a CoreAppInstaller instance.
        /// </summary>
        public CoreAppInstaller()
        {
            InitializeComponent();
            Helper.InitializeApp(Assembly.GetExecutingAssembly());

            installFolder = Helper.GetAssemblyFolder(Assembly.GetExecutingAssembly());

            //-----------------------------------------------------------------
            // Add a LillTek InstallTools installer instance.

            installTools = new InstallTools(SwitchConst.NeonSwitchName + " Setup", installFolder, "NeonSwitchInstall.cmd");
            this.Installers.Add(installTools);

            //-----------------------------------------------------------------
            // Add the Windows Service Installer

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

            this.serviceInstaller.DisplayName      = SwitchConst.NeonSwitchName;
            this.serviceInstaller.ServiceName      = SwitchConst.NeonSwitchName;
            this.serviceInstaller.StartType        = ServiceStartMode.Automatic;
            this.serviceInstaller.DelayedAutoStart = true;

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

            this.Installers.AddRange(new System.Configuration.Install.Installer[] {
                this.serviceProcessInstaller,
                this.serviceInstaller
            });

            //-----------------------------------------------------------------
            // Do some work that the service installer is too stupid to do.

            // Start the service after setup terminates.

            installTools.StartService(SwitchConst.NeonSwitchName);

            // Add the service description to the registry.

            installTools.AddRegValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\" + SwitchConst.NeonSwitchName + @":Description",
                                     "NeonSwitch Telephony Platform.");
        }