Tuesday, October 16, 2007

The Windows System Registry

What Is a Windows System Registry?
The system registry is one of the most important parts of a Windows-based computer system. Not to be tampered with lightly, the registry is a system-defined database used by the Windows operating system to store configuration information. Most Windows applications write data to the registry during installation, and system components store and retrieve configuration data through the registry. The data stored in the registry varies according to the version of Microsoft Windows.

Registry
A database used by the Windows operating system (Windows 95 and NT ) to store configuration information. The Registry consists of the following major sections:

· HKEY_Classes_Root - file associations and OLE information

· HKEY_Current_User - all preferences set for current user

· HKEY_User - all the current user information for each user of the system

· HKEY_Local_Machine - settings for hardware, operating system, and installed applications

· HKEY_Current_Configuration - settings for the display and printers

· HKEY_Dyn_Data - performance data

Most Windows applications write data to the Registry, at least during installation. You can edit the Registry directly by using the Registry Editor (regedit.exe) provided with the operating system. However, you must take great care because errors in the Registry could disable your computer.

What Is a Windows System Registry?
The system registry is one of the most important parts of a Windows-based computer system. Not to be tampered with lightly, the registry is a system-defined database used by the Windows operating system to store configuration information. Most Windows applications write data to the registry during installation, and system components store and retrieve configuration data through the registry. The data stored in the registry varies according to the version of Microsoft Windows.

Registry Structure: The Tree, Nodes and Keys
The data is stored in the registry in a tree structure format, for those who have never opened the Registry Editor, you'd find its layout is similar to what you would see when you open your Windows Explorer. Each node within the registry tree contains a key which may have both subkeys and data entries (called values). Depending on the application you run, the application may need only the associated key while others may need the value data set for that specific key. A hive in the registry is a group of keys, subkeys, and values in the registry that has a set of supporting files containing backups of its data. The Windows boot process automatically retrieves data from these supporting files.

How Applications Use the Registry
Applications use the registry in several ways. They can add data to your registry by creating or opening existing keys. When applications add to the registry, the data is sorted by computer-specific data or user-specific data. Through this distinction applications can support multiple users and locate user profile data. An application can close a key and write the data it contains into the registry and applications can delete a value from a key or delete a key. Applications can also save specific data, or parts of the system registry in a file to load that file into the registry which is common when large amounts of data is being handled, or when multiple entries are being added to the registry.

Problems Associated With The Registry
Users can experience computer problems caused by system registry errors for several reasons. Problems with the computer itself will usually occur because of invalid or missing keys in the Windows registry. Some signs of trouble include computer system crashes, stalls, or even a noticeably slower operating speed. Of course knowing what causes errors in your system registry can go a long way to avoiding registry problems in the future. In most cases, problems with your registry occur from user actions mainly involving the installation or removal of software and hardware on your computer. If you frequently install or uninstall programs, delete startup programs, change hardware and do not remove old drivers (or have corrupted hardware drivers), delete software which was not properly uninstalled, or have installed a program with embedded spyware on your computer, then you may experience problems with your Windows system registry.

Editing a Registry
You can edit the Registry directly by using the Registry Editor provided with the operating system. However you must take great care because causing errors in the Registry could disable your computer. You should not edit registry data that does not belong to your application unless it is absolutely necessary. If there is an error in the registry, your system may not function properly. If this happens, you can restore the registry to the state it was in when you last started the computer successfully. Editing a registry can be a difficult task and you should read through the help files for your specific Windows operating system before giving any further thought to editing the registry yourself.

Registry Backup and Restore
Some versions of Windows operating systems such as Windows 98, will create a backup of your system registry for you everyday provided your computer was rebooted during that calendar day. Unfortunately, the problems you may wish to fix with a registry restore may be included in the most recent backup, so it is advisable to start making your own registry backups instead of relying on those generated by Windows. It is important to note that the process for backing up and restoring a registry will differ between versions of Windows, and you should search the Microsoft Web site for exact instructions pertaining to your version of Windows.

Windows ME and Windows XP make system restore a bit easier as both have a System Restore feature that securely stores data that can later be used to put your system back to a previous state when it was known to function correctly.

If your last restore point had problems — for example a virus or worm, you'll face the probability that this information will also be restored to your system. It is important to remember that achieving a good system registry restore is dependant on you having taken the proactive steps to creating a good, usable backup to restore from. It is also important to read help files and search the Microsoft online Knowledgebase for registry backup and restore information for the version of windows you are running.

Registry Cleaner and Restore Utilities
For many, the process of cleaning and restoring a system registry is made easy with the use of third-party software utilities. A simple Google Web search for registry cleaning utilities will provide you with a plethora of results. For the most part, all registry repair and cleaner utilities provide you with an easy way to create registry backups, clean out your registry, and repair problems with your Windows system registry — some will provide additional features, but those are the basics to look for. Once you have installed your registry cleaner of choice, you will then set-up the basic options offered by the software (such as directories to store logs, backups, choose between automatic repair or to see the checklist of problems and confirm repair of each item. The cleaner utility will check areas storing information related to custom controls, software locations, shared DLLs, Startup programs, add/remove programs, and more.

You will have an option to create a system registry backup from the current state before making any changes to your Windows system registry as recommended by the cleaning utility. It is very important to create this backup, just incase something goes wrong when problems in the registry are repaired.

If you've make the decision to use a registry cleaning and repair utility to fix existing problems with your Windows System registry, you'll find you don't necessarily have to clean your registry frequently. But since you have the utility on your system creating registry backups is easily done with just a few clicks and can save you from total reformats and loss or corruption of your system in the future.

***************************************************************************************

Did You Know...
Even spyware can leave behind keys in your system registry that may not be removed by all anti-spyware software. This is why some pop-ups and other spyware activities will persist on your computer after a system reboot. The good news is that "registry scanning" is a feature being included in many newer anti-spyware products.

***************************************************************************************

Sunday, October 14, 2007

How I fixed my IE6 problem

How I fixed my IE6 problem

Note: This is especially for technically minded people who already have some experience at working at the DOS command prompt.

I had a problem with IE6 with SP1 in Windows XP. For some reason it would not open up new pages when I clicked on certain links within a page. So I tried to find the problem on the Internet and here is the solution that worked for me:

1. Click on Run and type CMD

2. You should now be in the command prompt window. If you are not in C drive change the drive by typing C: and enter

Change the default folder to that of System32 under your windows folder. The commands to do this would be either:

cd \winnt\system32
or:
cd \windows\system32
depending on the windows folder name.

After that type the following commands one at a time.

regsvr32 Shdocvw.dll
regsvr32 Shell32.dll
regsvr32 Oleaut32.dll
regsvr32 Actxprxy.dll
regsvr32 Mshtml.dll
regsvr32 Urlmon.dll

If you get any error messages typing commands at the command prompt, it could be that you made a typo and missed a letter some where.

Typing the commands above fixed the problem! It re-registered the DLLs that Internet Explorer apparently needs. I don't know exactly how they got un-registered, but it could be my playing around with registry cleaners that attributed to the problem. But since other people had this problem and posted it on the Internet, I would say it is a bug in IE6.

DISCLAIMER: Please don't hold me responsible if any procedure or software that is recommended on this page gave you negative results. If you don't know what you are doing, it's better not to do it.

Saturday, October 13, 2007

Sharing Files Between Windows XP and Mac OS X


Sharing Files Between Windows XP and Mac OS X

Using an Ethernet connection and File Sharing

To share files on a Windows XP computer and a Mac OS X computer, you can enable File Sharing to create a common folder accessible on both computers.

On Mac OS X 10.4 Tiger and 10.3 Panther:
  1. Click on System Preferences - Sharing
  2. Make sure the Services tab is selected
  3. Click to check Windows Sharing
  4. Note your Mac's IP address at the bottom of the window
On Mac OS X 10.2 Jaguar:
  1. Click System Preferences - Accounts
  2. Select the desired user's home folder
  3. Click Edit User
  4. Click to check Allow user to log in from Windows
  5. Click OK
  6. Click System Preferences - Sharing
  7. Click to check Personal File Sharing
  8. Click to check Windows File Sharing
  9. Note your Mac's IP address at the bottom of the window (in the paragraph reading "Windows users can access your computer at (address). To choose which Windows users can log in, open Accounts preferences and edit their user information." On Windows XP:
  10. Click on Start - Search
  11. Click on Computers or people - A computer on the network
  12. Enter the Mac's IP address that you noted above
  13. Enter your OS X username and password
Set up a shared folder on XP:
  1. Right-click on the folder to be shared
  2. Click on Properties
  3. Click on the Sharing tab
  4. Click on Share this folder on the network (so the folder can be read by the Mac)
  5. Click on Allow network users to change my files (so the folder can be written-to by the Mac)
  6. Click on Apply
  7. Click on OK
Access the shared XP folder from OS X:
  1. Click on Finder - Go - Connect to Server
  2. Click on the Server and PC to connect
  3. Click on Connect
  4. Enter your Mac username and password
  5. Click on OK
  6. Select the name of the shared folder to access
  7. Click on OK
Your shared XP folder now appears on the Mac desktop, allowing you to copy files from XP or OS X to the folder and retrieve them on the other computer.