mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
This commit is contained in:
parent
1d4b47debe
commit
e891115bbd
2 changed files with 27 additions and 6 deletions
|
|
@ -13,7 +13,8 @@ namespace InstallCleaner
|
||||||
{
|
{
|
||||||
try{
|
try{
|
||||||
CleanupUserKitInstallDir();
|
CleanupUserKitInstallDir();
|
||||||
CleanupOldTemplates_Shell();
|
CleanupOldTemplates_Shell_x86();
|
||||||
|
CleanupOldTemplates_Shell_x64();
|
||||||
CleanupOldTemplates_Express();
|
CleanupOldTemplates_Express();
|
||||||
} catch(Exception E){
|
} catch(Exception E){
|
||||||
Console.WriteLine(E.ToString());
|
Console.WriteLine(E.ToString());
|
||||||
|
|
@ -25,7 +26,7 @@ namespace InstallCleaner
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Removes any old cosmos templates in "Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates"
|
/// Removes any old cosmos templates in "Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static void CleanupOldTemplates_Shell()
|
private static void CleanupOldTemplates_Shell_x86()
|
||||||
{
|
{
|
||||||
using (var xReg = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\VisualStudio\9.0", false))
|
using (var xReg = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\VisualStudio\9.0", false))
|
||||||
{
|
{
|
||||||
|
|
@ -48,6 +49,29 @@ namespace InstallCleaner
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Removes any old cosmos templates in "Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates"
|
||||||
|
/// </summary>
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Removes any old cosmos templates in user template directories, most likely in My Documents. Implement for each language.
|
/// Removes any old cosmos templates in user template directories, most likely in My Documents. Implement for each language.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
<?xml version="1.0" standalone="yes"?>
|
<?xml version="1.0" standalone="yes"?>
|
||||||
<SettingsDS xmlns="http://tempuri.org/SettingsDS.xsd">
|
<SettingsDS xmlns="http://tempuri.org/SettingsDS.xsd">
|
||||||
<Breakpoint>
|
<Breakpoint>
|
||||||
<Label>*0x00583BA1</Label>
|
<Label>__ISR_HANDLER_21</Label>
|
||||||
</Breakpoint>
|
|
||||||
<Breakpoint>
|
|
||||||
<Label>__AFTER__ALL__ISR__HANDLER__STUBS__</Label>
|
|
||||||
</Breakpoint>
|
</Breakpoint>
|
||||||
<Window>
|
<Window>
|
||||||
<Name>FormCallStack</Name>
|
<Name>FormCallStack</Name>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue