private void DSFRBacklogMonitoringInstaller__AfterInstall(object sender, InstallEventArgs e) { }
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(""); }
private void RemoteControlServiceProcessInstaller_AfterInstall( object sender, InstallEventArgs e) { }
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"; }
/* * 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(); }
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(); }
private void XenServerHealthCheckProcessInstaller_AfterInstall(object sender, InstallEventArgs e) { }
private void serviceInstaller1_AfterInstall(object sender, InstallEventArgs e) { new ServiceController(serviceInstaller1.ServiceName).Start(); }
private void tcpProcessInstaller_AfterInstall(object sender, InstallEventArgs e) { }
private void FiveStarsServiceInstaller_AfterInstall(object sender, InstallEventArgs e) { }
private void serviceInstaller1_Committed(object sender, InstallEventArgs e) { SetServiceDesktopInsteract(serviceInstaller1.ServiceName); }
private void Public_IP_Logger_AfterInstall(object sender, InstallEventArgs e) { }
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]); }
private void serviceInstaller_AfterUninstall(object sender, InstallEventArgs e) { }
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) { }
private void StopServiceBeforeUninstall(object obj, InstallEventArgs e) { System.ServiceProcess.ServiceController sc = new System.ServiceProcess.ServiceController(AppService.Name); sc.Stop(); }
private void serviceProcessInstaller1_AfterInstall(object sender, InstallEventArgs e) { }
private void serviceInstaller_AfterInstall(object sender, InstallEventArgs e) { new System.ServiceProcess.ServiceController(serviceInstaller.ServiceName).Start(); }
// Event handler for 'Committed' event. private void MyInstaller_Committed(object sender, InstallEventArgs e) { }
// Event handler for 'Committed' event. private void MyInstaller_Committed(object sender, InstallEventArgs e) { Console.WriteLine(""); Console.WriteLine("Committed Event occured."); Console.WriteLine(""); }