Recycle Bin - Edit
Registry - Auto-Point to CAB Folder
Registry - Backing Up
Registry - Cleaning
Registry - Creating a reg file
Registry - Defrag
Registry - Developer Network
Registry - Reappearing values
Registry - Recovering Data
Registry - Restore
Registry - Failure Writing Error Message
Run Menu - Clear
Edit the Recycle Bin
Go to:
HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}
(Default) "Recycle Bin"
Highlight Default and right click, choose modify.
Where it says Value Data type in whatever name you want for the recycle bin.
Now Close the registry editor and and restart Windows 95.
Your Recycle Bin should now show whatever name you have decided on.
Or
Edit Recycle Bin 2
To add the rename option to the right click menu for the recycle bin goto:
HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder
In the right pane modify the Attributes Data to read:- 50 01 00 20 ( This is a Binary Value).
Original Value: 40 01 00 20
Or
Copy and paste between the *****'s, Save As a .reg file, and merge into the registry.
**********************************************************
REGEDIT4
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder]
"Attributes"=hex:50,01,00,20
**********************************************************
Changing the icon
If you want to change the default icon for the Recycle Bin, just look for the Key DefaultIcon when you are at the SubKey above. There are two default icons for the Recycle Bin, one full and the other empty. The defaults are listed below:
Empty Recycle Bin - SHELL32.DLL,31
Full Recycle Bin - SHELL32.DLL,32
Default Recycle Bin - same as empty
When Windows 95 starts, the Default Icon for the Recycle Bin is briefly shown while the system determines whether the Bin is either full or empty. In either case, the value for the Default Icon is dynamic; meaning that the current status of the Recycle Bin (empty or full) is always written into the Registry to keep it up to date.
If you want to change the Recycle Bin icons, all you have to do is enter the path where the icon is located, as above. If the path is to an .ICO file, you don't have to have the number indicating the icons position in the .DLL file.
Please remember that the Default is always equal to Empty.
Make Sure The Recycle Bin Is Empty Before You Edit The Icons. This Way There Will Be No Confusion As To The Value Of The Default.
Modify Registry to Auto-Point to CAB Folder
Run "Regedit" and go to
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup
In the right panel scroll down until you see the "SourcePath" entry.
Right-Click on SourcePath.
Click on Modify.
Key in Path that contains folder for CAB files.
Click OK and Exit.
Backing Up the Registry
Create a Recover or other folder and copy the Hidden files System.Dat (and .Da0) and User.Dat (and .Da0) to this directory. If someday your Windows crash, and the message: "Error in Explorer.exe. You must reinstall Windows" appear, boot to DOS mode (or command prompt only) and replace files with backup. If your damage isn't very big, your Windows will recover. Your changes made after the backup will lost, but you'll save your Windows... Back up them at least once a month.
 
It is sheer suicide to attempt to edit the Registry without backing up the necessary files before you begin. There is a little life-saver of a utility that comes with the Resource Kit called Configuration Backup (cfgback.exe). It not only lets the user backup the Registry data, but also allows the complete backup, restoration, and storage of up to NINE SEPARATE system configurations!
Later, if a mistake is made in editing the Registry, or if your latest changes have achieved some rather undesirable and disastrous effects, all you have to do is open up the Configuration Backup and select RESTORE. After you reboot your machine, the restored configuration returns your system to the settings BEFORE the disaster took place.
Configback is an handy program for backing up your registry.
Download cfgback.zip
Cleaning the Registry
Getting rid of obsolete entries
When you uninstall a program, all registry entries associated with that program should be deleted, unfortunately some entries may get left behind and become absolete and will stay in the registry forever.
This means you have redundant data in your registry, the more you install and uninstall the more data gets left behind, and so your registry grows and grows.
One symptom of having a large registry, especially one with redundant data, is that your computer doesn't seem to be as fast as it used to be .
Although having a slim and clean registry does not guarantee an increase in speed it doesn't help to clear out a few of the cobwebs.
The Windows registry is made up of two separate files, User.dat and System.dat. On a that doesn't have user profiles enabled, these are stored in the Windows folder.
Only attempt this if you are comfortable working with the registry and please make sure you have a recent backup, in fact do one now before you start.
Entries are usually easy to identify as in most cases they are stored in two distinct locations:
HKEY_CURRENT_USER\Software and HKEY_LOCAL_MACHINE\Software
These two branches are specifically intended for the use of the applications that are installed on the computer.
To locate and delete the obsolete entries, you use RegEdit.
This is accessed by selecting Start, Run, and then typing regedit in the dialogue box.
In the left pane of the RegEdit window, work your way down to
HKEY_CURRENT_USER\Software
Here you will find that it contains a subkey for each program manufacturer installed on the computer. This key will also contain subkeys for each of the manufacturers applications.
If you are absolutely certain that you do not have this software on your system then delete the entire branches for these applications.
As secondary safety measure before I delete a key I export it to a safe folder this way I can, if needed, import just this section back in to the registry.
To do this select the key then select Registry on the tool bar, then Export Registry File.
When the save window opens make sure that Selected Branch in the Export Range box is selected, give the file a name, and save it somewhere safe.
Now when you are 110% sure that it is not needed you can delete the file.
Hkey_Local_Machine\Software has a similar structure to Hkey_Current_User\Software.
The main difference is that it contains settings that are specific to the computer, whereas Hkey_Current_User\Software has settings that relate to the currently logged-on user and can be cleaned in the same way.
Cleaning up COM entries
HKEY_CLASSES_ROOT is another part of the registry that frequently gets left with unwanted entries.
This is where Windows registers important information about the COM classes that are installed in the system.
HKEY_CLASSES_ROOT has a complex structure and can be a nightmare to navigate. If you make a mistake when editing this key the effects can be more catastrophic than with the Software branches.
Cleaning HKEY_CLASSES_ROOT by hand is not advisable, and there is a program that can do the job.
Microsoft provides a program called RegClean, which can safely clean the entries in HKEY_CLASSES_ROOT. As well as removing obsolete data, it can resolve certain problems involving invalid links between these entries.
You can download RegClean from the Microsoft Knowledge Base RegClean 4.1a or take a look in my Goodies section.
RegClean performs a detailed scan of the registry and depending on the size of your registry could take a while.
It will then prompt you for permission to delete any obsolete or invalid entries that it has found but before deleting anything, it creates an undo file so that you can restore the deleted entries if needed, locate this file in the folder from which you launched RegClean, and double-click on it.
Tracking down unwanted COM entries.
Cleaning the registry is an brain taxing job and you will not have got rid of all obsolete entries
Using a third party software could be of help.
McAfee Uninstaller
http://www.mcafee.com/
The McAfee Uninstaller PowerClean module can identify many types of redundant registry entries. It can locate entries relating to invalid or non-existent application paths, file extensions and many others.
PowerClean backs up everything that it deletes, so you'll be able to restore any entries that you erase.
Norton Utilities WinDoctor
http://www.symantec.com/
The WinDoctor module in Norton Utilities works in much the same way as the McAfee product. WinDoctor is especially good at locating COM-related problems.
Norton's WinDoctor lets you select the type of registry entry that you want it to fix.
WinDoctor to scans the registry then displays a list of the categories in which it encountered a problem, you have the option of clicking the Repair All button or to select a category and then click the Details button. You'll then be able to review, and optionally delete, each invalid or obsolete registry entry in that category.
Defragmenting the registry
After painstakingly cleaning the registry you might be disappointed to see that the registry files are just as large as they were when you began. When a registry entry is deleted, the space it occupied isn't immediately reclaimed. When Windows needs to write new data to the registry, it will try to put it in this empty space. But if the space isn't big enough, the new data is written to the end of the file instead. As a result, the registry is still growing.
Related keys tend to get scattered around making it slower for Windows to access them.
Just like a fragmented hard drive, a fragmented registry can have an impact on performance So you need to defrag the registry.
See Defrag the Registry in section D
Using Windows 98's Scanreg command
If you have Windows 98, you can optimise the registry by using the Scanreg.exe command--the DOS version of the Registry Checker. Boot your system to a DOS prompt. Then, type the command Scanreg /opt and press [Enter].
Creating a Reg file
To create a new Key, Include its name in the brackets
All data must be in quotes
REGEDIT4 (for vista, Windows Registry Editor Version 5.00)
[HKEY_CURRENT_USER\NewKeyName1]
@="Info"
"Info"="Info"
[HKEY_CURRENT_USER\NewKeyName1\NewKeyName2]
@="Info"
[HKEY_CURRENT_USER\NewKeyName1\NewKeyName2\NewKeyName3]
@="Info"
"Info"="Info"
REGEDIT4
 
NewKeyName1
NewKeyName2
NewKeyName3
@=""
"Info"
|
Is the Identifier
The second line must be left clear
Creates a new key
Created inside NewKeyName1
Created inside NewKeyName2
Creates "default" as the named entry in the right pane
Is the data that is placed inside the New Keys
|
 
After the last line of information has been typed press return to give a clear last line.
Defrag the Registry
You install a program, you uninstall a program, you install a program, you uninstall a program and so on and so forth.
Data associated with these programs will have been written to the registry.
When a registry entry is deleted, the space it occupied isn't immediately reclaimed. When Windows needs to write new data to the registry, it will try to put it in this empty space. But if the space isn't big enough, the new data is written to the end of the file instead. As a result, the registry is constantly growing.
Related keys tend to get scattered all over the place, making it slower for Windows to access them. Just like a fragmented hard drive, a fragmented registry can slow performance.
The registry needs to be totally rewritten (defragged) to take out these blank lines which will effectively reduce it in size.
I have tried the following proceedure myself with good results, shrinking my 5.4MB registry down to 3.8MB.
This will not work if user profiles are enabled and, depending on the size of the registry, the temporary disk space required for this proceedure can be as much as 100 MB.
The technique involves running RegEdit in MSDos mode to export the entire registry to a text file. You then use this text file to rebuild the registry.
During the rebuilding process, RegEdit reorders the keys and eliminates any unused space. This results in a smaller registry with all the fragmentation removed.
First restart the computer in DOS mode.
One way to do this is to hold down [F8] as the computer is booting the when you see the Windows Startup menu, choose Command Prompt Only.
Now, type the following at the command prompt:
Regedit /e Temp.reg
Temp.reg is the text file to which you are exporting the registry and can be given any name you like, provided it has the extension .reg.
The export process can take a long time depending on the size of your registry.
When it is finished, type the following command to rebuild the file:
Regedit /c Temp.reg
Rebuilding is also time consuming, but it should be faster than the export process.
When it is finished, reboot your computer and check that everything is working normally.
If all is ok, you can delete Temp.reg.
You should now have a smaller set of registry files.
Microsoft Developer Network
Some of the binary data strings remain constant throughout the entire Registry, from Hkey_Local_Machine all the way down to Hkey_Current_User.
This should save from having to use the Find shortcut in the Registry Editor to look up these very same values, which remain constant, no matter whose system they're on.
[10-1] Control Panel {21EC2020-3AEA-1069-A2DD-08002B30309D}
[10-2] Printers {2227A280-3AEA-1069-A2DE-08002B30309D}
[10-3] Recycle Bin {645FF040-5081-101B-9F08-00AA002F954E}
[10-4] My Computer {20D04FE0-3AEA-1069-A2D8-08002B30309D}
[10-5] Dial-Up Networking
[10-6] Network Neighborhood {208D2C60-3AEA-1069-A2D7-08002B30309D}
[10-7] Inbox {00020D75-0000-0000-C000-000000000046}
[10-8] Desktop {00021400-0000-0000-C000-000000000046}
[10-9] Shortcut {00021401-0000-0000-C000-000000000046}
Reappearing values in the Registry?
If after several editing sessions in the Registry Editor, you suddenly discover that several entries and values that you deleted seem to be reappearing, it is NOT a problem with the Registry, the Editor, or your mind.
To keep that data from respawning, simply remove the offending items from your WIN.ini file!
Recovering Registry Data
In Windows 95, data is written to the Registry only when a flush occurs -- that is, when something happens after changed data has aged more than a few seconds or when an application intentionally flushes the data to the hard disk.
 
Each time Windows 95 successfully starts, the operating system backs up the Registry by copying the current SYSTEM.DAT and USER.DAT files to SYSTEM.DA0 and USER.DA0, respectively.
If Windows 95 fails to start, the backed-up Registry from the last successful start-up can be copied over the current Registry. This method recovers the last successful settings after a system failure.
If the Registry should ever become damaged, it can be salvaged WITHOUT reinstalling Windows 95. All you have to do is look for a hidden system file called SYSTEM.1ST in the root directory of the drive that hosts Windows 95. This file is a copy of the Registry that was created when Windows 95 setup was first deemed successful.
 
All you have to do is change the file attributes of the file by locating it in the Windows 95 Explorer, and right clicking on it.
Choose properties, and then, the General Properties dialog appears. Change the file attributes from READ-ONLY and HIDDEN to ARCHIVE and copy it to the Windows 95 subdirectory.
Then, rename the file from SYSTEM.1ST to SYSTEM.DAT, copying over the corrupt file, and replacing it with workable system profiles.
You can also maintain back-ups of the Registry with the Configuration Backup utility included on diskette with the Windows 95 Resource Kit.
See Backing Up the Registry
 
To put it another way: To restore the Registry
1 Click the Start button, and then click Shut Down.
2 Click Restart The Computer In MS-DOS Mode, then click Yes.
3 Change to your Windows directory. For example, C:\Windows, type the following: cd C:\Windows
4 Type the following commands, pressing ENTER after each one.
(Note that SYSTEM.DA0 and USER.DA0 contain the number zero.)
attrib -h -r -s system.dat
attrib -h -r -s system.da0
copy system.da0 system.dat
attrib -h -r -s user.dat
attrib -h -r -s user.da0
copy user.da0 user.dat
5 Restart your computer.
Following this procedure will restore your registry to its state when you last successfully started your computer.
Additionally, there is a file on your hard disk named SYSTEM.1ST that was created when Windows 95 was first successfully installed. You could also change the file attributes of this file from read-only and hidden to archive to copy the file to SYSTEM.DAT
Restore the Registry
Following this procedure will restore your registry to its state when you last successfully started your computer.
To restore the registry
- Click the Start button, and then click Shut Down.
- Click Restart The Computer In MS-DOS Mode, and then click Yes.
- Change to your Windows directory. For example, if your Windows directory is C:\Windows, you would type the following:
cd c:\windows
- Type the following commands, pressing ENTER after each one.
(Note that System.da0 and User.da0 contain the number zero.)
attrib -h -r -s system.dat
attrib -h -r -s system.da0
copy system.da0 system.dat
attrib -h -r -s user.dat
attrib -h -r -s user.da0
copy user.da0 user.dat
- Restart your computer.
Two very useful programs are CFGBack and Emergency Recovery Utility
These might be hidden away on your system somewhere or on your master CD.
CFGBack.exe
This program is for backing up the registry where you can save up to nine copies.
CFGBack is very easy to use and it has got me out of a mess on more than one occasion.
Download
Emergency Recovery Utility
This contains the program "Emergency Recovery Utility", and is possibly better than "CFGBack" as it also backs up the system files such as Autoexec, Win.ini, System.ini, as well as the Registry.
ERU creates a boot up disc, I went through a period where I was having trouble starting Windows 95, I'd pop in the floppy restart my system ERU would reload all the relevant files and get my system running.
Below is a list of the files it backs up
- CONFIG.SYS
- AUTOEXEC.BAT
- WIN.INI
- SYSTEM.INI
- PROTOCOL.INI
- USER.DAT
- SYSTEM.DAT
- IO.SYS
- COMMAND.COM
- MSDOS.SYS
NOTE:
USER.DAT and SYSTEM.DAT are too big for a floppy but you can save to your harddrive.
Download
Failure Writing to the System Registry... Error Message
When you run a setup program that was created using the Application Setup Wizard, you may receive an error message indicating the registry may be corrupt or you do not have the required permissions to write to the registry.
As the error message indicates, the problem may be due to a corrupt registry or incorrect permissions to write to the registry. In addition, the problem occurs on computers running Windows 95 when the Setup program tries to add an entry to a registry key and the key will exceed 64K in size as a result.
Registry keys are limited to 64K in Windows 95.
When the problem occurs on a Windows 95 computer, it usually happens when Setup tries to add entries to the key below.
Try running the RegClean utility provided by Microsoft, a link can be found at our downloads page. Alternatively have a look at the Microsoft Knowledge Base article referenced below.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
SharedDLLs
Download RegClean
Clear The Run Menu
Go to:-
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\
RunMRU
Delete everything in the right pane EXCEPT the value named Default.
Restart Windows and the run menu will be empty.