Bug 141651. On windows, uninstalls will kill CASAManager too
This commit is contained in:
		| @@ -1,3 +1,7 @@ | |||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Mon Feb 21 12:22:17 MST 2006 - jnorman@novell.com | ||||||
|  | - Bug 141651.  On windows, uninstalls will kill CASAManager too. | ||||||
|  |  | ||||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ||||||
| Mon Feb 21 12:05:17 MST 2006 - jnorman@novell.com | Mon Feb 21 12:05:17 MST 2006 - jnorman@novell.com | ||||||
|  |  | ||||||
|   | |||||||
| @@ -151,6 +151,18 @@ namespace sscs.init | |||||||
|  |  | ||||||
| 		private static void uninstallService() | 		private static void uninstallService() | ||||||
| 		{ | 		{ | ||||||
|  |             // kill all running versions of CASA manager | ||||||
|  |             Process[] proc = System.Diagnostics.Process.GetProcessesByName("CASAManager"); | ||||||
|  |             for (int i = 0; i < proc.Length; i++) | ||||||
|  |             { | ||||||
|  |                 try | ||||||
|  |                 { | ||||||
|  |                     proc[i].Kill(); | ||||||
|  |                 } | ||||||
|  |                 catch { } | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |  | ||||||
| 			TransactedInstaller ti = new TransactedInstaller (); | 			TransactedInstaller ti = new TransactedInstaller (); | ||||||
| 			ProjectInstaller mi = new ProjectInstaller (); | 			ProjectInstaller mi = new ProjectInstaller (); | ||||||
| 			ti.Installers.Add (mi); | 			ti.Installers.Add (mi); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user