From e891115bbdc0ab53a5eb24fe66d800ddf32953a2 Mon Sep 17 00:00:00 2001 From: kudzu_cp <6d05c8c8ef5431987001abfdb2eadc9593ac9498> Date: Wed, 18 Aug 2010 18:20:19 +0000 Subject: [PATCH] --- source2/InstallCleaner/Program.cs | 28 +++++++++++++++++-- .../Users/Kudzu/Breakpoints/Breakpoints.cgdb | 5 +--- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/source2/InstallCleaner/Program.cs b/source2/InstallCleaner/Program.cs index 7449d627e..fba2213d2 100644 --- a/source2/InstallCleaner/Program.cs +++ b/source2/InstallCleaner/Program.cs @@ -13,7 +13,8 @@ namespace InstallCleaner { try{ CleanupUserKitInstallDir(); - CleanupOldTemplates_Shell(); + CleanupOldTemplates_Shell_x86(); + CleanupOldTemplates_Shell_x64(); CleanupOldTemplates_Express(); } catch(Exception E){ Console.WriteLine(E.ToString()); @@ -25,7 +26,7 @@ namespace InstallCleaner /// /// Removes any old cosmos templates in "Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates" /// - private static void CleanupOldTemplates_Shell() + private static void CleanupOldTemplates_Shell_x86() { using (var xReg = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\VisualStudio\9.0", false)) { @@ -48,6 +49,29 @@ namespace InstallCleaner } } + + /// + /// Removes any old cosmos templates in "Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates" + /// + private static void CleanupOldTemplates_Shell_x64() { + //Registry.LocalMachine. + using (var xReg = Registry.LocalMachine.OpenSubKey(@"Software\Wow6432\Microsoft\VisualStudio\9.0", false,)) { + if (xReg == null) { + // shouldn't even happen, but better safe than sorry: + return; + } + var xInstallDir = xReg.GetValue("InstallDir") as string; + if (xInstallDir == null) { + return; + } + var xCosmosDir = Path.Combine(xInstallDir, @"ProjectTemplates\Cosmos"); + + if (Directory.Exists(xCosmosDir)) { + Directory.Delete(xCosmosDir, true); + } + } + } + /// /// Removes any old cosmos templates in user template directories, most likely in My Documents. Implement for each language. /// diff --git a/source2/Users/Kudzu/Breakpoints/Breakpoints.cgdb b/source2/Users/Kudzu/Breakpoints/Breakpoints.cgdb index 953dccb20..3db927fce 100644 --- a/source2/Users/Kudzu/Breakpoints/Breakpoints.cgdb +++ b/source2/Users/Kudzu/Breakpoints/Breakpoints.cgdb @@ -1,10 +1,7 @@ - - - - + FormCallStack