Re: importing registry logic
Quote:
Originally posted by markman
I dont need code for this, just a basic flowchart or something.
I have a registry file (the thing that is made when you export the registry) of all the keys for the settings of my proggy. I want to import that, but only certain parts of it. So say I had these settings:
Code:
Settings
Old People
Peanut Butter
Squirels
and I wanted to import just old people and squirells. Here's my idea so far:
Export current settings (backup)
copy the backup, so there are 2 backups.
Import the entire new settings (including peanutbutter)
export oldpeople
export peanutbutter
delete all registry settings
import one of the backups
import old people
import peanutbutter
delete backup unless there was an error
Does that make sense? or is there a better way to do it?
the file is a bit too complicated to parse BTW.
I don't understand... why would you dellete all registry settings if you're loading a backup after that. Besides... that backup will already have the setting for old people and peanutbutter... so, why would you import it again?