[warebiz] :: Programming Bizness
menu Inner_Core
menu Learning Tools
menu Tutorials
menu Articles
menu Resources
menu Support
binary digits

 Random Insight ::

binary digits

 Book References ::

binary digits

 Geek Wisdom ::

Tweaking Windows Tutorial
Read the Tweaking Windows Tutorial! 

.: TABLE OF CONTENTS :.
    .:.... What is the Registry? From a beginner's perspective.
    .:.... Change the Start Button Text [98, 2000, XP]
    .:.... Disable the Desktop [98, XP]
    .:.... Disable the Recycling Bin [98, ME, 2000, XP]
    .:.... Customize the Right Click Context of Start Menu [98, 2000, XP]
    .:.... Launch/Disable Programs when Windows Starts [All Versions]
    .:.... Remove/Change Shortcut Icon Arrow [All Versions]
    .:.... Show Cascading Control Panel Items [Me, 2000, XP]
    .:.... Automatically Hide Inactive Tray Icons [XP]
    .:.... Disable Balloon Tips [XP]
    .:.... Show/Hide Favorites on Start Menu [2000, XP]

*** Warning / Disclaimer ***
Editing the Registry can cause serious harm to your computer.
In accordance with my legal notice, I cannot be held responsible for your actions.
The information provided on this page is for educational purposes only.


What is the Registry? From a beginner's perspective.

Before I start to describe the Registry in detail I want you to do one thing: backup your current Registry. This can be done by doing all of the necessary backup routines. I normally just go into the windows directory on my hard drive and look for an icon named "explorer". Right click on the icon, copy it, and then paste it in another folder on your hard drive such as "backUp". This is just for precaution purposes in case you screw up the entire Registry. You can then track down this backup Registry and get your system back up and running.

The first thing you need to know about the Registry is how to explore and manipulate it. This can be done rather easily. Simply type "regedit" without quotes in the run dialog box and hit enter. Regedit will pop up and your current Registry will be at your fingertips. Before you go stomping on the Registry through Regedit, you need to know a couple of things about what you are looking at.

The Registry is made up of several data files located in different subdirectories scattered all over your hard drive. It is different for every Windows OS version. It is important to realize that the Registry works in real-time mode. It does not wait to save changes later to disk, so if you make a mistake during a regedit session, the mistake will be a permanent one. You cannot exit regedit without saving.

If you have regedit up and running, you will notice the Registry tree in the left hand pane. The Registry tree is made up of several hives and keys that can expand into a mess rather quickly by clicking on the plus sign to the left of each parent key. To clean up the mess or close a key and its contents, simply turn the minus sign key, which means it has been expanded, into a plus sign by clicking on it. At launch, regedit points you to the last key that you had highlighted including all of the keys you had to expand to get to it. In order to get a clean startup with regedit and have every key closed, you have to highlight the very first parent key, which is My Computer, before exiting the program. When you are navigating through the Registry tree, you can set bookmarks on keys that you will need to access in later regedit sessions. You can bookmark a key by clicking on the Favorites menu and selecting add to favorites. You must have the key highlighted before you bookmark it.

Although you can very easily edit the Registry while working in regedit itself, your safest bet is to use a double patch method. The patch method lets you export a desired key that you want to edit, and then import the key back into the Registry. If you use the double patch method, you would export two copies of the key you want to edit and keep one of the copies as a backup in case you make a mistake. When saving the keys when you export them, use descriptive names so you know which key you are editing and also make sure to distinguish between the backup key and the experimental key. These exported keys are called patches because regedit automatically assigns them a .REG extension and associates them with the Registry. By double-clicking on an exported key, you can import the key into the Registry. When you import them, the imported key is modified with the contents of the exported file. This is a handy way to swap tweaks with your Registry buddies, but it also can be dangerous.

Registry patches are simple text files so you can view and edit them with a simple text editor such as Notepad. When you view the contents of an exported key, you will see the name and version of regedit on the very first line. It then lists the precise name of the key you exported including the top-level key you highlighted and all of its keys right down to your exported key.

It is important to note that importing a file to the Registry is just like appending the file to the Registry. In other words, if you make any changes to the file within quotation marks and brackets, regedit will acknowledge the changes and modify the keys contents when you import them. If you add new keys and values in the correct format, regedit will also acknowledge them. But, simply deleting a key or a value name from a patch file will not remove the file in the Registry when you import it. There is a specific way to eliminate keys, values, value names, and entire branches.

If you want to delete a branch as well as all of its keys, place a hyphen ( - ) after the opening bracket and before the hive name. Be very careful when issuing this command. For example,

[-HKEY_CURRENT_USER\Software

will delete the Software key and any subordinate keys and values under the Software key.

If you want to delete a value within a key, keep the name of the value in tact but replace everything after the equal sign ( = ) with a hyphen ( - ). For example, if you change "Identity Ordinal"=dword:00000002 to "Identity Ordinal"=-, the value named "Identity Ordinal" will be deleted from the key.

The nice thing about using the double patch method is if you import a patch and then realize it is not correct, you can simply double-click the backup ( unchanged ) patch and restore your prior settings.

If you are the type of person who needs complete control over your system, then you may want to keep stray users out of your Registry. If you are using XP, you can restrict keys and entire hives from the different users on your system by right-clicking on the desired key or hive name and selecting permissions. Here you can do all of the restricting you need to do. You can also create certain patch files used to lock up the Registry completely and even deny yourself access to the Registry, but I won't get into the details.

That's really all you need to know about the Registry, so its time to perform your first tweak. Read on for the details of how to change the start button text; you know the little button at the bottom left of your screen that reads "start" and screams "these geeks from Redmond named me start!" so change me...

Change The Start Button Text

The file that needs to be changed is Windows Explorer, which is "Explorer.exe". Before running regedit, make a copy of the Explorer.exe file and keep it in a safe place such as c:\backUp just in case you run into some problems. The file Explorer.exe can be found in the Windows directory, usually c:\windows for 98/XP and c:\winnt for windows 2000. Make another copy of Explorer.exe and rename it Explorer1.exe. Be sure to keep Explorer1.exe in the Windows directory where the original Explorer.exe should still be located. Then open Explorer1.exe in your hex editor that you should have already downloaded and installed.

In your hex editor, you need to search down the entire file until you find a specific string named "Start". There are many strings named "Start" so you have to find the one that is used as the label for the start button. This is done by using the search function in your hex editor to find all of the strings that are equal to "S t a r t" which is "53 00 74 00 61 00 72 00 74" in hex values. There are many different "Start" strings so keep searching until you find the one located just before this text: "There was an internal error and one of the windows you were using has been closed.".

Once you have found the string and are sure it is correct, you may replace the characters with any characters you want. You have to place the characters exactly where the original characters were. Be sure to remember that you have to use exactly five characters. If you choose a word that is only three characters in length, you have to use spaces or some other character to fill in the remaining 2 characters.

After you edit the string, you need to save the modified "Explorer1.exe" and make sure it is placed in the windows directory with the original "Explorer.exe" file. "Explorer1.exe" and "Explorer.exe" should have the same file size but should have different modified dates. The next step is different depending on the OS you are running. Only use the step that is required for your OS version. Some versions involve using MSDOS. I walk you through the necessary commands if you are not familiar with DOS.

WIN 98 users:
Restart windows to DOS (or use a boot disk) and at the command prompt change to the Windows directory and rename "explorer.exe" to "explorer.old". Then copy the newly modified "explorer1.exe" to "explorer.exe". Do a directory listing and confirm that "explorer.exe" has the most recent modified date and time. Restart your computer and Windows should reload with new start button text. The following shows the commands needed (in correct order) in order to accomplish what you need to do in MSDOS.

Commands Line for Line in MSDOS
cd c:
ren explorer.exe explorer.old
copy explorer1.exe explorer.exe
dir
CTRL-ALT-DEL

WIN XP users / WIN 2000 users:
Open the Registry Editor "regedit.exe" in windows and find the key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon]. Open the key and edit the value of "Shell" to equal the filename of the new explorer "explorer1.exe" file. Refresh and exit your registry editor and restart Windows for the change to take effect. To reverse the change, modify the value of "Shell" and set it back to "explorer.exe".

If everything has gone smoothly, then you should have the new start button text displayed instead of the original "Start" text. If you did run into problems, just rename the files back to the original file "explorer.exe" or use the backup file you made.

Do you have a custom designed wallpaper covered up by twenty icons on your desktop? How about cleaning it up by removing every icon on the desktop, including My Computer and the Recycling Bin. Read on for more about disabling the desktop...

Disable the Desktop

When you disable the desktop, all icons will be removed from it including My Computer and the Recycling Bin. It will also block right click capability so therefore you will not be able to view the desktop's properties. The tweak is very easy to perform. Open the registry editor "regedit.exe" and find the following key:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies]

Under this key, there will definitely be a key named explorer. Click on the explorer key. Next, create a new DWORD value (by right clicking in the right pane and selecting DWORD value) and name it "NoDesktop", without the quotes. In order to enable the restriction and disable the desktop, you have to modify the value of "NoDesktop" to 1. To remove the restriction, modify the value to 0.

Restart Windows for the change to take effect.

My next tweak is one you should think about before using. Disabling the recycling bin means that if you delete something from your hard drive, it will automatically erase the data and you cannot retrieve it; it doesn't store it in the recycling bin. Read on for more about disabling the recycling bin...

Disable the Recycling Bin

The following tweak will disable the desktop. If you are the type of person who likes to peek in your recycling bin to restore files every other week, you shouldn't enable this tweak. If enabled, upon delete of a file, the file is completely removed from your computer; it doesn't get sent to the recycling bin. The files are nuked upon delete. Open the registry editor "regedit.exe" and open the following key:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket]

Click on the BitBucket key, right click in the right pane, create a new DWORD value, and name it "NukeOnDelete" without the quotes. To enable the tweak, modify the value of "NukeOnDelete" to 1. Set the value of "NukeOnDelete" back to 0 if you wish to restrict the tweak.

Restart Windows for the change to take effect.

My next tweak shows you how to add program shortcuts to the right click capability of the start button. Read on for more about tweaking the right click capability of the start button...

Customize the Right Click Context of Start Menu

Normally when you right click on the start button, you will see only these options (depending on the version of your OS): open, explore, open all users, explore all users. You can very easily add programs and shortcuts to the menu for easy access. I use this tweak because I would much rather right click on the start button and then select my destination (program) than to click on start, go to programs, then find your program, and so forth; plus, it's different. Open the registry editor "regedit.exe" and open the following key:

[HKEY_CLASSES_ROOT\Directory\Shell]

Right click on Shell and create a new Sub Key. Do this by right clicking on the shell key and selecting New > Key. Type in the name of the application (program) that you want to appear when you right click on the start button. For example, if you want to add a shortcut for Notepad, then call it Notepad. Next, right click on the key that you just created and create another key named Command. You must call it Command! Edit the value of Command in the right pane to the full path (shortcut) of the program you are adding. For example, to add Notepad, you would edit the value of Command to

c:\windows\notepad.exe

Press F5 to refresh and when you right click on the start button, you will find your newly added program. Click on the program to launch it. You can add however many programs you want. You may need to restart for your tweak to take effect.

My next tweak shows you how to keep programs from starting each time that windows starts. Read on for more about disabling/adding startup programs...

Launch/Disable Programs when Windows Starts

I'm sure you have noticed one time or another all those programs that automatically start when you start Windows. You probably don't even use 75% of them. All they do is sit in the system tray and take up valuable working memory. Well, now you can remove the programs you hardly ever use. You can also add programs that you would like to automatically start when Windows boots.

All Versions - Removing Programs
Open the Registry Editor "regedit.exe" and look for all of the following keys. You have to look for the shortcut of the program you want to remove and simply delete it. If you find the program you want to delete in one key, don't stop looking in other keys. Sometimes the shortcuts of programs are placed in many different keys.

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]

[HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Run]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServices]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]
[HKEY_CURRENT_USER\Software\Microsoft\WindowsNT\CurrentVersion\Windows]


All Versions - Adding Programs
Open the Registry Editor "regedit.exe" and open the following key:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]

For each program you want to start automatically when Windows boots, create a new string value using a descriptive name, and set the value of the string to the full path (shortcut) of the program.

For example, to add Notepad, add a new entry called "Notepad" and enter the full path (shortcut):

"c:\windows\notepad.exe"

Restart Windows for the changes to take effect.

Read on for info on how to remove/add the shortcut arrow on icons...

Remove/Change Shortcut Icon Arrow

If you take a look at a shortcut icon, you will see a little white arrow at the bottom left corner, which indicates that it is a shortcut. The following is a simple tweak which will remove the short cut arrow. Open the registry editor "regedit.exe" and delete the string value IsShortCut from the following keys:

[HKEY_CLASSES_ROOT\Inkfile]
[HKEY_CLASSES_ROOT\piffile]
[HKEY_CLASSES_ROOT\InternetShortcut]

Restart Windows for the change to take effect.

My next tweak will show you how to show cascading control panel items in the start menu. Read on for more...

Show Cascading Control Panel Items

Normally when you click on start --> settings and then scroll to control panel, you only have the option of clicking on control panel and then exploring the items it contains in a different window. If you set this tweak, when you click on start --> settings --> control panel, the items in control panel will be cascaded so you can select the item you want without having to open a new window.

Me / 2000 / XP
Open the Registry Editor "regedit.exe" and open the key:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

In the right pane, look for a string value name CascadeControlPanel. If it is there, change the value of it to "Yes" to set the tweak on, and "No" to set the tweak off. If CascadeControlPanel is not there, create a new string value name CascadeControlPanel, and the set the value of it to "Yes" to turn the tweak on, or "No" to turn the tweak off.

Restart Windows and the changes should take effect.

Read on for info on how to automatically hide inactive tray icons...

Automatically Hide Inactive Tray Icons

By default, the system tray rests at the bottom right of your Windows GUI beside the clock. It could lie to the right of the start button depending on your OS version. The icons you see there are actually programs that have been already started and loaded into Windows, so when you click on the program, it will load a lot quicker than if it wasn't pre-loaded during startup. Most of the programs in the tray you probably won't use very often, so you can hide the icons in the tray by setting this tweak. It won't take the programs out of the tray, it will only hide the icon, normally by creating an arrow beside the icons that once clicked on will expand and show all of the icons in the tray.

XP
Open the Registry Editor "regedit.exe" and open the following key:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]

In the right pane, look for a DWORD value name EnableAutoTray. If you see it there, change the value of it to 1 to hide the inactive tray icons, and 0 to display the inactive icons. 1 turns the tweak on; 0 turns the tweak off. If you don't see EnableAutoTray in the right pane, then create a new DWORD value named EnableAutoTray and set it's value to 1 to turn the tweak on or 0 to turn the tweak off.

Restart Windows and the changes should take effect.

Read on for info on how to disable those annoying balloon tips...

Disable Balloon Tips

I'm sure you have noticed the annoying balloon tips inside the Windows GUI. For example, let your mouse rest idle over the start button for a few seconds and you should see "Click here to begin". For those of you who want to eliminate these pesky balloon tips, use this tweak. It my not eliminate all of the tips, but you will never see the majority of them ever again.

XP
Open the Registry Editor "regedit.exe" and open the following key:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]

In the right pane, look for the DWORD value EnableBalloonTips. If it is there, change the value of it to 1 the turn the tweak on or 0 to turn the tweak off. If you don't see EnableBalloonTips, create a new DWORD value named EnableBalloonTips, and set the value of it to 1 to turn the tweak on or 0 to turn the tweak off.

Restart Windows and the changes should take effect.

Read on for info on how to show/hide the favorites folder on the start menu...

Show/Hide Favorites on Start Menu

The following tweak can accomplish two different tasks: show the favorites folder on the start menu or hide the favorites folder on the start menu.

2000 / XP
Open the Registry Editor "regedit.exe" and open the following key:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

In the right pane, look for a DWORD value named StartMenuFavorites. If it is there, change the value of it to 1 to show favorites on the start menu or change the value of it to 0 to hide favorites on the start menu. If you don't see StartMenuFavorites in the right pane, then create a new DWORD called StartMenuFavorites and change the value of it to 1 to show favorites on the start menu or change it to 0 to hide favorites on the start menu.

Restart Windows and the changes should take effect.

You have reached the end of my tutorial on tweaking windows. If you have any questions about any parts in the tutorial, please contact me, and I'll be sure to get back with you. I haven't decided on whether I will be posting more tweaks and tricks concerning the Windows OS. I guess it will depend on visitor feedback. If you have a question about a tweak not listed in my tutorial, contact me and I'll see what I can do to help. For more tweaks, visit WinGuides.com. Thanks for visiting and be sure to check back for updates.

[Back to Top]

.: Report Bug : Error Log : About Webmaster :.