Sign in with
Sign up | Sign in
Your question

Importing a complete reg file possible under W2K?

Tags:
  • Registry
  • Windows
Last response: in Windows 2000/NT
Share
July 12, 2002 7:58:11 PM

I recently exported the entire registry to a .reg file, however, when trying to import it again, I get an error message.

I am therefore wondering if there are any way to convert a .reg file into something usable for windows 2000, as it was under windows 98?

More about : importing complete reg file w2k

July 13, 2002 5:36:57 PM

Quote:
I recently exported the entire registry to a .reg file, however, when trying to import it again, I get an error message.

What kind of error message?



<b><font color=red><i>"All delays are dangerous in war."</b></font color=red></i>
July 18, 2002 4:06:45 PM

The message was "Error accessing Registry". I have learned that it is due to certain values being write protected, so I can't overwrite them using a .reg file.

I do have a full backup of the system however, and I wonder if I need to restore the entire backup, or if there are a few certain files I can use instead to recover only the registry settings? (I should be able to restore these from DOS as the system use Fat32 and not NTFS)
Related resources
Can't find your answer ? Ask !
July 18, 2002 4:26:54 PM

Additional comments:
What I really try to do is change the location of "Program Files" to something like "Prog2000". The reason for this is that I want to test a dual boot system, where the new installation clearly will use the same folder. I therefore exported the registry to a all.reg file and made a replace all c:\\Program Files\\ with c:\\Prog2000\\ (~4300 entries) (saved new version as newall.reg)
Then I imported the values again, and ran into the problem that some of the values in the registry are read only.
I used the original all.reg to get back the original values.

I exported the values again to see what I needed to delete, however the new temp.reg was only 2/3 of the first all.reg file, not larger as expected. Some values must therefore have been deleted.

If possible, I would like to replace all the values of i.e. "Program Files" with the %ProgramFiles%, or even better, to a self specified variables to keep track of what gets installed by new programs.

I have been using different language versions before, and know that these versions does not use the same names for the system folders.

I have also done this successfully on Windows 98 before, changing "Program Files" to "Prog98".
July 20, 2002 6:29:22 AM

The Registry in Windows 2000 is not, by the way, the same as the registry which is a part of Windows 9x, although it has some similarities. For example, you can perform a multitude of powerful tasks under Windows 9x, by exporting the registry to an external file, modifying the file, and then importing it back to Windows 9x Registry. You cann't do anything like that with Windows 2000 Registry.

If I am not wrong, you are trying to deal with 'regedit.exe', which actually not the Windows 2000 Registry, it is 'regedt32.exe' which is called Windows 2000 registry.

Have a look at <A HREF="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q141377" target="_new">Differences Between Regedit.exe and Regedt32.exe
</A>

<A HREF="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q322755" target="_new">HOW TO: Backup, Edit, and Restore the Registry in Windows 2000</A>


<b><font color=red><i>"All delays are dangerous in war."</b></font color=red></i>
!