Additional Information about Registration files  
 
Previous  Top  Next

 

If you wish to export the entire Registry, select the active snapshot of the tree. Note that only the rootkeys HKEY_LOCAL_MACHINE and HKEY_USERS get exported because all the other rootkeys are included (they can be found as subkeys of either of these two main rootkeys).  
 
Warnings about Registration (REG) files  
 
You can use RegEdit-compatible registration files to create distributable registry scripts, but it is recommended that you do not use them to backup or to store data. Because of bugs in all existing Windows regedit.exe versions, certain registry values exported into a registration file may be ignored when they are re-imported. This problem exists with both ANSI and UNICODE REG files.  
 
It is also possible that certain registry keys do not get exported because the user who is currently logged on may not have sufficient permissions to read them. Typically, a REG file does not contain any information on security, permissions or ownership when running on Windows XP/2000/NT.  
 
CAUTION: You should know that if you ever accidentally double-click on a *.REG file, its content will merge into your Registry. To prevent this, open Windows Explorer (My Computer), select the menu item View | Options (for Windows XP/2000 – Tools | Folder Options). On the File Types tab scroll to Registration Entries and select it. Click the Edit button. In the Actions list, select Edit and press the Set Default button.  
These actions change the default behavior so that double-clicking a *.REG file will open it in Notepad. If you want to merge it with the Registry, right-click the REG file and select Merge from the context menu.  
 
Windows 95 or 98: In rare circumstances, when the Registry is badly corrupted, you can start the computer using the Windows 95 startup disk. Then you can use the real-mode REGEDIT.EXE utility on the startup disk to import a *.REG file. In this case, the following command syntax can be used at the command prompt.  
regedit [/L:system] [/R:user] file1.reg, file1a.reg...  
regedit [/L:system] [/R:user] /c file2.reg  
Parameter Description  
/L:system specifies the location of SYSTEM.DAT.  
/R:user specifies the location of USER.DAT.  
file1.reg specifies one or more .REG files to import into the Registry.  
/c file2.reg specifies the .REG file to use to replace the entire contents of the Registry.  
 
WARNING: Use the option regedit /c with extreme care and only when you are sure that the specified *.REG file contains a complete image of the Registry!