Ignore:
Timestamp:
2000-10-06T04:52:00+13:00 (24 years ago)
Author:
cs025
Message:

Added testing for the existence of parent keys when a key is created; this
fixed the omission of implicit parent creation when a key was created, and
the parent's creation was therefore not logged, resulting in a non-destruction
of the parent key when an uninstall was performed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/gsRegistry.h

    r1543 r1590  
    1919
    2020class gsRegistry : public installAgent
    21 {
    22 private:
    23   string volumeKey;
    24   string collectKey;
     21{   private:
     22        string volumeKey;
     23    string collectKey;
    2524
    26   bool logAction(string action, HKEY base, string path, string item, string value);
    27 public:
    28   gsRegistry(installManager &manager, configureFile &configFileb);
    29   virtual ~gsRegistry () {}
    30   bool storeKeyString(HKEY base, string path, string item, string value);
    31   bool collectionInstalled();
    32   bool volumeInstalled();
    33   bool ensureKeysExist();
    34   bool ensureKeyExists( HKEY base, string key);
    35   bool destroyKey(HKEY base, string key);
    36   bool destroyItem(HKEY base, string key, string name);
    37   string collectKeyId();
    38   string volumeKeyId();
    39   string exeKeyId(string exeName);
    40   string uninstallKeyId(string collectName);
    41   FilePath *collectionPath();
    42   bool undoAction(string ActionName, stringArray &params);
    43   //    Path();
     25    bool logAction(string action, HKEY base, string path, string item, string value);
     26    bool ensureParentKeyExists( HKEY base, string key);
     27    public:
     28    gsRegistry(installManager &manager, configureFile &configFileb);
     29        bool            storeKeyString( HKEY base, string path, string item, string value);
     30    bool            collectionInstalled();
     31    bool            volumeInstalled();
     32    bool            ensureKeysExist();
     33    bool            ensureKeyExists( HKEY base, string key);
     34    bool            destroyKey(HKEY base, string key);
     35    bool            destroyItem(HKEY base, string key, string name);
     36    string      collectKeyId();
     37    string      volumeKeyId();
     38    string      exeKeyId(string exeName);
     39    string    uninstallKeyId(string collectName);
     40    FilePath *collectionPath();
     41    bool undoAction(string ActionName, stringArray &params);
     42//    Path();
    4443};
    4544#endif
     45
Note: See TracChangeset for help on using the changeset viewer.