ColTom2 said:
If you do a complete Export of your Registry and save it to your
Desktop and then do an application update that causes problems can
you Import it back and it will do away with all the Registry
entries created by the App update?
Again my main question is if I do a complete Export, install the
Java update and it does cause problems again, can I Import the
Registry back and it will void any Registry entries the update
caused?
If you mean by using Regedit, no, you cannot. Well, you could, but
do not do it<g>. The Import will simply add the exported settings
to [what] you already have and everything will be doubled, or worse.
<snipped>
Importing or merging files to the registry does not create duplicate
registry entries. Importing into the registry will not double
everything, what you are claiming is absolutely impossible to do. You
should refrain from giving "advice" about things that you
obviously know nothing of.
Give it a try; I have it right here next to me on a sandbox machine.
Full of duplicates. It does not merge properly.
There cannot be duplicate entries in the registry! It is an
*absolute impossibility*! What you are saying is just plain
impossible to do, why you insist on spreading this lie is rather
baffling to say the least!
There cannot be duplicate Subtrees (Root keys) in the registry!
There cannot be duplicate Keys in a Subtree!
There cannot be duplicate Subkeys in a Key!
There cannot be duplicate values in a Key or Subkey!
You cannot export the whole registry and then try to re-import or
merge it back, it will throw an error, but it will not create
duplicate entries.
Because he doesn't really understand it? It's not really that
"amazing".
Question: Have you tried it? Go ahead and try it. It can indeed
be accomplished.
Okay. I'll try anything on a computer once - particularly my virtual
machines.
Let's just do a simplistic test.
I used RegEdt32 (habit) to create the following registry values:
HKEY_LOCAL_MACHINE\SOFTWARE\Twayne\Test
"TestEntryOne" (String) = "TestValue1"
"TestEntryTwo" (DWORD) = 1
I exported said values into a Registry Export file:
<copy below this line>
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Twayne\Test]
"TestEntryOne"="TestValue1"
"TestEntryTwo"=dword:00000001
<copy above this line>
Called that file "TwayneTest.reg".
I then double-clicked on said file. The "Registry Editor" window appeared
and asked, "Are you sure you want to add the information in
C:\TwayneTest.reg" to the registry?" [Yes] [No].
I chose [Yes] and the new "Registry Editor" window appeared telling me,
"Information in C:\TwayneTest.reg has been successfully entered into the
registry.".
So I checked. Yep - there it was. The same entries - still in there just
once. Perhaps I needed to refresh... So I pressed F5 with the root of the
registry selected. No change. So I closed the registry editor and
re-opened to check. Still only the single entries. So I closed it and
merged again and rebooted for good measure. When I logged back in and
checked - still only the single entries.
I am unsure how far to go - but I decided to make the "TEST" key so only
"SYSTEM" had permissions to change it. I selected it, EDIT --> PERMISSIONS,
Advanced -> Unchecked the inheritance and copied the current permissions to
it. I then removed everything but "SYSTEM" from those who have permissions
to do anything to it. Not surprisingly, the String and DWORD values
'disappeared' from view instantly ("TestEntryOne" and TestEntryTwo".)
Replacing the owner I did not do.
So I tried to import again... This time I received a new message when I
told it I was sure I wanted to merge. That message was in a "Registry
Editor" error window and said, "Cannot import C:\TwayneTest.reg: Not all
data was successfully written to the registry. Some keys are open by the
system or other processes."
So I thought... Maybe it's because I still have the RegEdt32 window open.
Closed it.
Tried the import again...
Nope - same error.
Okay - rebooted.
Tried the import again.
Same error.
Checking each time - the values were still 'hidden' from my view (I did not
have perms to them after all) and no duplicates had appeared elsewhere.
I added my perms back. I tried the import again.
It imported successfully now that I had permissions to it. But no duplicate
values of any sort.
Now - all I can figure is that you are doing some much larger export/import?
Although I cannot fathom how that would make any difference. This
small-scale test shows that existing values - well - they exist and cannot
be duplicated.
It's like a file system directory structure (because that is what it is.)
If I have C:\Documents and Settings\Shenan\ --> I can have that path *once*.
If the file "test.txt" exists in that directory (C:\Documents and
Settings\Shenan\test.txt) and I try to create a file with the same name and
extension there - it will tell me I cannot.
Can you explain more fully what test would replicate what you are claiming?
Oh - in case it matters - this was all done on a fully updated Windows XP
Professional machine - SP3, IE7, etc.