Perfect Companion
Version 4.0

by Easy Desk Software

Editing a Reg file
Error Messages
Helpful Hints
Perfect Companion Stalls
Programs Become Disabled
Restoring a Key
Read Me First

For more help on with Perfect Companion visit our Web Site Perfect Companion help page.

Editing a Reg file

When you need to restore a key see Restoring a Key

A reg file must be structured correctly for it to work. In the following example all text in red is for your information only and does not belong in the file.

REGEDIT4 (this must be on the top line and be in all capital letters)
(this line must be a carriage return)
(File paths must contain two backslashes of each slash)
(this line must be a carriage return, if you have another key to restore it starts on the next line. If this is the end of the file then you need a second carriage return. This file would ten be 7 line long.)

The second item you need to know is that some keys have SubKeys and each key must be restored. In the following example is what the restore file should look like.

REGEDIT4 (first line of file)
(this line must be a carriage return)
@="Active Server Application"
(this line must be a carriage return)
(this line must be a carriage return)
@="&Open with VStudio"
(this line must be a carriage return)
@="C:\\PROGRAM FILES\\Microsoft\\Common\\IDE\\IDE98\\devenv.exe %1"
(this line must be a carriage return)
@="C:\\PROGRAM FILES\\Microsoft Visual Studio\\VIntDev98\\bin\\vidisws.dll,-307"
(this line must be a carriage return)
(this line must be a carriage return)

Perfect Companion Stalls

If Perfect Companion gets stuck on a Key, exit the program. Make sure no other software is running in the background, then retry. If Perfect Companion gets stuck again at the same Key then the Key will need to be manually deleted after reviewing the Key for possible errors. This Key maybe damaged and Perfect Companion is trying to read it, contents may be to a remote computer if the path is not local, or it is completely invalid and Perfect Companion to trying to verify it. If you feel that the Key is a valid Key or it is abnormal and needs to stay, then use the Add Key buttons. Visit our site for More Help for Perfect Companion.

Helpful Hints

You should create a snapshot of your entire system and save it. You can do this by creating a snapshot and then renaming the file filelog.dat to filelog.sav. When you want to compare your system in the future, create a new snapshot, then exit Perfect Companion, delete the file Filelog.dat and rename the file Filelog.sav to Filelog.dat. Now finish the snapshot.

Registry Cleaner:
When reviewing the undo file you should only have to review the files with paths. Files without paths belong within the Windows folder or Windows sub folders. If the file is not in the correct location and is elsewhere on your system, the Key is completely invalid and should be edited and restored.

After running the Registry cleaner once, you can check the boxes Do not register DLL and OCX files. You will only need to do this once in a while as you add or remove software.

You need to run the Registry cleaner several times, until it reports that no errors were found. Then reboot and run it one more time.

Some entries in the Registry are loaded from the Win.ini and System.ini; entries like file extensions. You should manually check these two files for extensions that seem to reappear in the Registry cleaner's undo file. Remove them if you find them there.

Restoring a Key

When you wish to restore a Key clcik on "View undo Files", the files will be displayed with date and time. Click on "View" to find the file that contains the Key you want to restore. If you wish to restore the entire file click on "Restore File". If you wish to restore a single Key ( you can restore mutilpule Keys but only one at a time), click on "Restore one Key.

When you select one Key to restore a new window will open, displaying the entire file. Locate the Key you want, then locate the top level Key. If you want to restore the Key: [HKEY_CLASSES_ROOT\CLSID\{A4C4671C-499F-101B-BB78-00AA00383CBB}\InprocServer32]

You must select:
@="VBA Collection Object"

Perfect Companion will then remove all other Keys from the Window and display the Key as following:
@="VBA Collection Object"



Then click on "Continue Restoring" to restore the Key.


Read Me

Perfect Companion is designed to remove invalid Class, Interface, and other installed files Keys. It does not remove Keys that are known as Software Keys. Windows does not read these Keys, only the program that wrote them reads them. Perfect Companion must be run several times for a complete cleaning. If you wish to learn why click here.

This software will remove any entry that is not valid, contains a non-existent file or invalid path. If the entry in the Registry contains an incorrect path, invalid structure, or an invalid quotation mark, comma, period, backslash, or another character that is not valid the Key will be removed.

An undo file will be created each time the program is run. Each time you use the "Find file errors in the Registry" the previous file will be saved. If you view the file with "View changes made in the Registry", that file will be saved before it is displayed; this way if you wish to edit the file a restore you will still have the complete undo file saved Dead Keys will not be recorded, they are unreadable so they cannot be saved.

If Perfect Companion stalls on a TypeLib Key ,delete the Key. Then rerun Perfect Companion registering the DLLs. If Perfect Companion stalls on the same Key again while reading the key (not registering DLLs) you will need to add the SubKey HELPDIR so that it is on the same level Key as FLAGS i.e : (HKEY_CLASSES_ROOT\TypeLib\{43F8F27B-7A20-11D0-8F06-00C04FC295E1\1.0\0\HELPDIR ). Set the Default value to "C:\Windows\System". The Win16 or Win32 Key must contain a filename and path. For more help on this Key visit our Web Site Perfect Companion help page.

The Registry Cleaner will automatically repair the font folder and the Recycle Bin folder on Rebooting after use.

The Snapshot utility is designed to show you which files have been replaced with older versions or modified during an installation. It will also show you which files have been added or deleted to your machine. It will not remove any files that may have been added during an installation. Uninstallers will remove the files that they tracked during the installation. The Snapshot utility file can then be used to help you completely remove the installation. Some dll files are not removed by uninstallers, so now you can see if the file was added by the software you are uninstalling.

Programs Become Disabled

If you find that Perfect Companion has disabled a program, and restoring the PCundo file does not fix the program, follow these directions.
1) Clean the Registry until no more errors; fixing the Keys that need to be repaired and restoring them.

2) Reinstall the program(s) that was disabled, make sure it is working properly.

3) Export the Registry and save it to the desktop. To Export the Registry, open RegEdit and select "Registry" from the menu bar on the top. Then select "Export".

4) Run Perfect Companion  and clean the Registry. View the changes made in the Registry each time you run it. Add the keys that have been removed to the "Add Registry Keys not to read" button.  The Key name to enter will look like: {AD684A01-595D-11d3-98F0-00C04F609259}. You need only enter the key once.

5) Keys that Perfect Companion displays as "INVALID KEY STRUCTURE" on screen have an invalid Key structure. Some programs use a CLSID Key to store its own information. This is not a valid practice but Norton will not run without them. Currently, Norton System Works and Anti Virus Keys are included in the Bad Keys list for you already. Norton's NIS first release is also. Note: All Registry cleaners will remove these Keys; only Perfect Companion has the feature to bypass these Keys. These Keys can automatically be added to the "Add Registry Keys not to read" .

6) Restore the Registry by Importing it, or double click on the exported file on your desktop. Then reboot.

Perfect Companion will no longer read or delete these Keys.

Visit our Perfect Companion help page. Keys with invalid structure for known software will be posted on this page. You can enter them in Perfect Companion's "Add Registry Keys not to read" and Perfect Companion will no longer delete them.

For more help visit our site.


If you get an error while registering of a DLL or OCX (ActiveX) file, try replacing the file and rerun the Registry Cleaner. You can tell which file it is by viewing the lower window of the interface. In this window, the file name will be displayed for a few seconds when a error occurs.
If you still get the error, you can bypass the file next time by entering the file name in the "Add DLLs not to Register" button The file name will be displayed in the lower window of the interface at the time the error occurs. If you still get the error then you need to enter the previous file instead.

How Keys are Deleted

This reason Perfect Companion needs several runs for a complete cleaning is because Registry Keys are read as a number. Once a Key is deleted the next Key takes the deleted Keys number. So if there are 10 Keys to read and Key number 2 was deleted Key number 3 now becomes Key number 2. However, if a program is designed to delete the number 2 Key and then go back and read the number two Key again and the Key was a stuck Key( Key that cannot be opened or deleted), the software would go into a loop trying to delete the number 2 Key.