[commit] r1198 - trunk/GME/MgaUtil

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Fri Feb 25 17:01:41 CST 2011


Author: ksmyth
Date: Fri Feb 25 17:01:41 2011
New Revision: 1198

Log:
May need to create some registry keys for Disassocciate

Modified:
   trunk/GME/MgaUtil/MgaRegistrar.cpp

Modified: trunk/GME/MgaUtil/MgaRegistrar.cpp
==============================================================================
--- trunk/GME/MgaUtil/MgaRegistrar.cpp	Fri Feb 25 16:50:31 2011	(r1197)
+++ trunk/GME/MgaUtil/MgaRegistrar.cpp	Fri Feb 25 17:01:41 2011	(r1198)
@@ -2225,6 +2225,14 @@
 		if(mode & RM_USER) {		
 			CRegKey comp;
 			LONG res = comp.Open(HKEY_CURRENT_USER, rootreg + "\\Components\\" + pname);
+			if (res == ERROR_FILE_NOT_FOUND) {
+				CRegKey comp1, mga;
+				res = comp1.Open(HKEY_LOCAL_MACHINE, rootreg + "\\Components\\" + pname, KEY_READ);
+				if(!res) res = mga.Create(HKEY_CURRENT_USER, rootreg);
+				CRegKey comps;
+				if(!res) res = ( comps.Create(mga, "Components") );
+				if(!res) res = ( comp.Create(comps, pname) );
+			}
 			CRegKey assocs;
 			if(!res) res = assocs.Open(comp, "Associated");
 			if (res == ERROR_FILE_NOT_FOUND) 


More information about the gme-commit mailing list