From 8993768ee0fe15088a175c154c14f5d2f3f7c13c Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Tue, 21 Feb 2006 19:24:26 +0000 Subject: [PATCH] Bug 141651. On windows, uninstalls will kill CASAManager too --- CASA.changes | 4 ++++ c_micasad/init/WinSecretStoreClientService.cs | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/CASA.changes b/CASA.changes index 1cdd87e8..e948240d 100644 --- a/CASA.changes +++ b/CASA.changes @@ -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 diff --git a/c_micasad/init/WinSecretStoreClientService.cs b/c_micasad/init/WinSecretStoreClientService.cs index a9396131..51405ccf 100644 --- a/c_micasad/init/WinSecretStoreClientService.cs +++ b/c_micasad/init/WinSecretStoreClientService.cs @@ -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);