static void DeleteKey(ExtendedRegistry reg, string guid) { reg.DeleteSubkey("Software\\Classes\\CLSID\\" + guid + "\\ProgId"); reg.DeleteSubkey("Software\\Classes\\CLSID\\" + guid + "\\InProcServer32"); reg.DeleteSubkey("Software\\Classes\\CLSID\\" + guid); }
static void CreateKeys(ExtendedRegistry reg, string guid, string libraryId, string classId, string path) { reg.SetValue("Software\\Classes\\CLSID\\" + guid, null, classId + " Class"); reg.SetValue("Software\\Classes\\CLSID\\" + guid + "\\InProcServer32", null, path); reg.SetValue("Software\\Classes\\CLSID\\" + guid + "\\ProgId", null, libraryId + "." + classId); }
static string GetPathFromRegistry(ExtendedRegistry registry, string valueName) { return registry.GetValue("SOFTWARE\\TortoiseSVN", valueName) as string; }