Bug 141651. On windows, uninstalls will kill CASAManager too

This commit is contained in:
Jim Norman 2006-02-21 19:24:26 +00:00
parent f7b5adfb56
commit 8993768ee0
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -151,6 +151,18 @@ namespace sscs.init
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 ();
ProjectInstaller mi = new ProjectInstaller ();
ti.Installers.Add (mi);