Changeset 1498 for trunk/gsinstaller/gsRegistry.cpp
- Timestamp:
- 2000-09-05T03:30:48+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsinstaller/gsRegistry.cpp
r1475 r1498 3 3 gsRegistry::gsRegistry(installManager &manager, configureFile &configFile) 4 4 : installAgent(manager) 5 { unsigned int space; 6 7 // Create string for volume key 5 { // Create string for volume key 8 6 volumeKey = "Software\\" + configFile.getString("CompanyName") + "\\" + 9 7 configFile.getString("CollectionName") + "\\" + … … 18 16 19 17 bool gsRegistry::logAction(string action, HKEY base, string path, string item, string value) 20 { manager->writeString(action); 21 manager->writeSeparator(); 22 manager->writeString(path); 18 { unInstallCommand command(action); 19 command.addParameter(path); 23 20 if (item != "" || value != "") 24 { manager->writeSeparator(); 25 if (item == "") 26 { manager->writeString("{Default}"); 21 { if (item == "") 22 { command.addParameter("{Default}"); 27 23 } 28 24 else 29 { manager->writeString(item);25 { command.addParameter(item); 30 26 } 31 manager->writeSeparator(); 32 manager->writeString(value); 27 command.addParameter(value); 33 28 } 34 manager->writeString("\n");29 return manager->storeCommand(command); 35 30 } 36 31 … … 66 61 67 62 bool gsRegistry::destroyKey(HKEY base, string key) 68 { re gistry_deletekey(base, key.c_str());63 { return registry_deletekey(base, key.c_str()); 69 64 } 70 65 … … 92 87 registry_deleteitem(local, item.c_str()); 93 88 registry_closekey(local); 89 return true; 94 90 } 95 91
Note:
See TracChangeset
for help on using the changeset viewer.