Welcome to the Xceed Community | Help
Community Search  
More Search Options

[Backup Library] Browsing available registry keys to restore

Sort Posts: Previous Next
  •  10-07-2008, 7:19 AM Post no. 15937

    [Backup Library] Browsing available registry keys to restore

    I'm using the Backup Library within VB6, but am having an issue with restoring registry keys.

    I'm backing up two legs of the registry - HKEY_CURRENT_USER\Software\Company\Application\version (eg, HKEY_CURRENT_USER\Software\Company\Application\7.0) and HKEY_CURRENT_USER\Software\Company\Common.

    This works fine, but unless my code has:
    "AddRegKeysToInclude "HKEY_CURRENT_USER\Software\Company\Common"
    "AddRegKeysToInclude "HKEY_CURRENT_USER\Software\Company\Application\Version"

    the restore part - BrowseCatalogs - won't pick anything up. ie, I have to put the exact same file selection legs in. I've tried in the restore routine to put
    "AddRegKeysToInclude "*"

    or
    "AddRegKeysToInclude "HKEY_CURRENT_USER"

     but it always returns error 1528 - 'Nothing to do'.

     

    This seems like a bug to me, that it won't catalog what it finds, but I have to tell it whats inside.

     My DLL version is 1.1.6461.0

    Filed under: ,
  •  10-08-2008, 5:16 AM Post no. 15961 in reply to 15937

    Re: [Backup Library] Browsing available registry keys to restore

    After playing around with this a bit more, it appears it will work if you miss out one leg. Eg, in the above example, if I backup
    HKEY_CURRENT_USER\Software\Company\Common

     then this code to restore will *not* work:

     "AddRegKeysToInclude "*"

    (get the 1528 error). However, if I use this:

    "AddRegKeysToInclude "HKEY_CURRENT_USER\Software\Company\*" 

    the BrowseCatalogs function works - returns ONE entry (not the second one).
    This code will NOT work:

    "AddRegKeysToInclude "HKEY_CURRENT_USER\Software\*"  

     Is this a quirk, feature, or simply by design? Looking in the ZIP file, the legs are in there as expected. 

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.