How to Rebuild the Default Windows REG.DAT FileLast reviewed: December 11, 1997Article ID: Q80393 |
3.10 3.11
WINDOWS
kbsetup kbole kberrmsg
The information in this article applies to:
SUMMARYDuring installation of Microsoft Windows, the REG.DAT file is not copied from the original distribution disks. Instead, REG.DAT is built using the Windows Registration Information Editor (REGEDIT.EXE) and the SETUP.REG file (located in the Windows SYSTEM subdirectory) during Setup. If the REG.DAT file is corrupted, one of the following error messages may be displayed:
File Manager cannot open or print the specified file. Start the application used to create this file, and open or print it from there. -or- There is no application associated with this file. Choose Associate from the File menu to create an association. -or- There is a problem with REG.DAT. Delete REG.DAT and restart Windows. -or- Setup had a problem with REG.DAT, SHELL.DLL or disk space. -or- Windows registration database program is not valid -or- OLE server initialization failed -or- Windows registration database is not validIf, for whatever reason, the REG.DAT file is corrupted or deleted, you can rebuild the file using the information below.
MORE INFORMATIONThe REG.DAT file contains information about file associations and OLE objects. The Windows 3.1 Setup program calls the Registration Information Editor to add default associations (for Paintbrush, Notepad, and so on) and objects (Packager, Paintbrush, and Sound Recorder).
Rebuilding the REG.DAT File for Applications Included with WindowsYou can manually create a new REG.DAT file or restore the defaults by following the steps below.
NOTES
Rebuilding the REG.DAT File for Other ApplicationsFor applications other than the Windows-based programs included with Windows 3.1, the technique varies for rebuilding REG.DAT. Some applications, such as Microsoft Word 2.0 for Windows, rebuild their entries every time the application is started. Other applications may register themselves only during their setup processes. NOTE: If you are using Word 2.0 for Windows, make sure to include the path to the Word for Windows program directory and the WW20.REG file located there (for example, C:\WINWORD\WW20.REG) so that the registration database is updated. If the application includes an .REG file, you can add that information to the registration database. To do so, either:
ole and regedit and officeAdditional information about Registration Information Editor is available in Windows 3.1 Help.
REFERENCES"Microsoft Windows Resource Kit for Operating System Version 3.1," Chapter 11, page 360
|
KBCategory: kbsetup kbole kberrmsg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |