RegEdit and Merging Databases
Keywords: regedit registration database .REG regedit.exe /s
Question:
Is there an easy way to merge registry entries? I know that I can write individual registry
entries, but I have used the registry export function to create a file and want to just
merge it as I would if I were doing it manually, that is, just double-clicking on the
filename (file.reg) in Windows95.
Is there a way to separate out what each application does to REG.DAT, so that I can
create a REG.DAT "stub file" for each application that can be merged with the
Windows REG.DAT file by the windows operating system. Shame it's not a text file
like the INI files.
Answer:
You can create a .REG (text) file, and then run "REGEDIT myfile.reg" to merge it into the
registration database. A number of Windows applications distribute registration information
in this manner, including Word for Windows and Excel (look for .REG files in their main
directories).
Ummm something like
RunWait("regedit.exe","/s file.reg")
or to export:
RunWait("regedit.exe", "/e filename hivekeypath")
- If you run "REGEDIT /v", highlight a particular key, and select "Save Registration File"
from the File menu, it will output that key to a .REG file, which you can then examine.
- If you run "REGEDIT /s" you can start the registry editor without the initial message coming up.
Article ID: W13728
Filename: RegEdit and Merging Databases.txt
File Created: 1999:09:22:15:32:30
Last Updated: 1999:09:22:15:32:30