J
John John (MVP)
Twayne said:Question: Have you tried it? Go ahead and try it. It can indeed be
accomplished.
Yes I have, just now again, and many times before! I have exported the
*whole* registry, *whole% hives or just select keys/subkeys and I have
then attempted to import them back into the registry. The attempted
imports had various results, either the operation failed completely
(trying to import the whole registry) or it succeeded but with errors
(when importing whole hives it imported some keys but could not import
them all) or the operation was completely successful. In all cases
there were no duplicate entries created, there were none because what
you say is not true, it is impossible to created duplicate entries in
the registry!
I have just now tested this on Windows XP and on Windows 2000 and on
both machines the results were the same. I had no qualms doing this on
production (home) machines because I have backups and I know all too
well that there can be no harm in importing identical entries in the
registry, it changes nothing in the registry. I also know that due to
the ACID nature of the registry when imports fail it will not allow the
creation of meaningless entries in the registry. In my 12+ years of
using NT operating systems I have exported/imported and merged files to
the registry countless times and I have *never* seen duplicate entries
in the registry, what you are saying is pure and simply bunk!
Anyone can easily and fairly safely test this by doing the following:
1- Create a Restore Point.
2- Create a new dummy test user account.
3- Log on to the new user account to allow the system to create the
user's profile hive. Log off to ensure that the profile hive is
properly created and stored.
4- Log back on to the new user account and use the registry editor and
export the whole HKEY_CURRENT_USER subtree, and then (while still logged
on as the same new user!) try to import or merge the exported HKCU file
back to the registry and observe the results.
As mentioned by Shenan in his post, this is akin to creating duplicate
paths or folders/files with duplicate names in the same path, it is
impossible to do! In the case of Windows Explorer, by default it will
simply assign a new, slightly different name to the file system object
(FileName (2), FileName (3)...). Other utilities may use different
methods such as adding or appending to the object name (Copy of
ObjectName, Copy2 of ObjectName...). Native Windows registry utilities
do not use these methods to rename registry entries, for starters those
newly renamed entries would be completely meaningless and useless, they
would serve absolutely no purpose. Adding or merging an entry to the
registry is an all or nothing proposition, either it works or it fails,
there is no in between and on failure the registry tools do not create
duplicate entries!
So that brings us to your claims that importing files into *your*
registry leaves it "Full of duplicates"! If this is happening then we
can only surmise or offer possibilities such as:
1- Your Windows installation is completely borked, probably brought
about by the indiscriminate use of worthless registry cleaners!
2- Your machine has a severe virus infection.
3- You are using a useless third party registry utility to import or
merge the files to the registry and the utility is using a renaming
scheme as described above to rename entries.
If, as you claim, your registry is "Full of duplicates" could you give
use the full details of some those duplicate entries? What are the
names of these duplicates?
John