コード例 #1
0
		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);
		}
コード例 #2
0
		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);
		}
コード例 #3
0
 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);
 }
コード例 #4
0
		static string GetPathFromRegistry(ExtendedRegistry registry, string valueName)
		{
			return registry.GetValue("SOFTWARE\\TortoiseSVN", valueName) as string;
		}
コード例 #5
0
 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);
 }