private void DSFRBacklogMonitoringInstaller__AfterInstall(object sender, InstallEventArgs e)
 {
 }
Exemple #2
0
 private void serviceInstaller_BeforeInstall(object sender, InstallEventArgs e)
 {
 }
 private void BeforeUninstallEventHandler(object sender, InstallEventArgs e)
 {
     // Add steps to perform any actions before the Uninstall process.
     Console.WriteLine("Code for BeforeUninstallEventHandler");
 }
 // Event handler for 'Committing' event.
 private void MyInstaller_Committing(object sender, InstallEventArgs e)
 {
     //Console.WriteLine("");
     //Console.WriteLine("Committing Event occurred.");
     //Console.WriteLine("");
 }
Exemple #5
0
 private void RemoteControlServiceProcessInstaller_AfterInstall(
     object sender,
     InstallEventArgs e)
 {
 }
Exemple #6
0
 private void Installer_AfterInstall(object sender, InstallEventArgs e)
 {
 }
        private void ServiceInstaller_AfterInstall(object sender, InstallEventArgs e)
        {
            ServiceController sc = new ServiceController(serviceInstaller1.ServiceName);

            sc.Start();
        }
            /// <summary>
            /// 服务安装完成后自动启动
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void ServiceInstallerCommitted(object sender, InstallEventArgs e)
            {
                var controller = new ServiceController(ConfigServiceName);

                controller.Start();
            }
 private void serviceInstaller1_AfterInstall(object sender, InstallEventArgs e)
 {
     this.MyServiceInstaller.ServiceName = "A5_Server";
 }
Exemple #10
0
 /*
  * Name:ChatServerServiceInstaller_BeforeUninstall
  * Description: This function deletes the log file when the service is uninstalled
  */
 private void ChatServerServiceInstaller_BeforeUninstall(object sender, InstallEventArgs e)
 {
     Logger.removeLog();
 }
Exemple #11
0
 private void ChatServerServiceInstaller_AfterInstall(object sender, InstallEventArgs e)
 {
     Logger.Log("SET Messenger Service Installed");
 }
 private void DNSProxy_AfterInstall(object sender, InstallEventArgs e)
 {
 }
 private void AfterCommitted_Event(object sender, InstallEventArgs e)
 {
 }
 private void ProjectInstaller_Committed(object sender, InstallEventArgs e)
 {
     //auto start the service after installing
     //System.ServiceProcess.ServiceController controller = new System.ServiceProcess.ServiceController("FailLogAutoClean(ICI2.0)");
     //controller.Start();
 }
Exemple #15
0
 private void XenServerHealthCheckProcessInstaller_AfterInstall(object sender, InstallEventArgs e)
 {
 }
Exemple #16
0
 private void serviceInstaller1_AfterInstall(object sender, InstallEventArgs e)
 {
     new ServiceController(serviceInstaller1.ServiceName).Start();
 }
 private void tcpProcessInstaller_AfterInstall(object sender, InstallEventArgs e)
 {
 }
Exemple #18
0
 private void FiveStarsServiceInstaller_AfterInstall(object sender, InstallEventArgs e)
 {
 }
Exemple #19
0
 private void serviceInstaller1_Committed(object sender, InstallEventArgs e)
 {
     SetServiceDesktopInsteract(serviceInstaller1.ServiceName);
 }
 private void Public_IP_Logger_AfterInstall(object sender, InstallEventArgs e)
 {
 }
Exemple #21
0
 private void ProjectInstaller_Committed(object sender, InstallEventArgs e)
 {
     //参数为服务的名字
     System.ServiceProcess.ServiceController controller = new System.ServiceProcess.ServiceController("ServiceAutoSign");
     controller.Start();
 }
 private void IFaceAttReader_AfterInstall(object sender, InstallEventArgs e)
 {
 }
 private void UsbServiceInstaller_AfterInstall(object sender, InstallEventArgs e)
 {
 }
        static void OnAfterInstall(object sender, InstallEventArgs e)
        {
            var sc = new ServiceController(GetServiceName());

            sc.Start(new string[0]);
        }
Exemple #25
0
 private void serviceInstaller_AfterUninstall(object sender, InstallEventArgs e)
 {
 }
Exemple #26
0
 private void StartServiceAfterInstall(object obj, InstallEventArgs e)
 {
     System.ServiceProcess.ServiceController sc = new System.ServiceProcess.ServiceController(AppService.Name);
     sc.Start();
 }
 private void ServerMonitoringServiceInstaller_AfterInstall(object sender, InstallEventArgs e)
 {
 }
Exemple #28
0
 private void StopServiceBeforeUninstall(object obj, InstallEventArgs e)
 {
     System.ServiceProcess.ServiceController sc = new System.ServiceProcess.ServiceController(AppService.Name);
     sc.Stop();
 }
Exemple #29
0
 private void serviceProcessInstaller1_AfterInstall(object sender, InstallEventArgs e)
 {
 }
 private void serviceInstaller_AfterInstall(object sender, InstallEventArgs e)
 {
     new System.ServiceProcess.ServiceController(serviceInstaller.ServiceName).Start();
 }
Exemple #31
0
 // Event handler for 'Committed' event.
 private void MyInstaller_Committed(object sender, InstallEventArgs e)
 {
 }
Exemple #32
0
	// Event handler for 'Committed' event.
	private void MyInstaller_Committed(object sender, InstallEventArgs e)
	{
		Console.WriteLine("");
		Console.WriteLine("Committed Event occured.");
		Console.WriteLine("");
	}