IT tutorials
 
Windows
 

Windows XP : Applications and the Registry - Shared DLLs

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
2/11/2012 6:05:38 PM
The Registry is perhaps Windows XP’s most important component because it stores thousands of settings that Windows needs. The Registry is important for your applications, as well, because most Windows applications use the Registry to store configuration data and other settings.

When you install an application, it typically makes a half-dozen different Registry modifications:

  • Program settings

  • User settings

  • File types

  • Application-specific paths

  • Shared DLLs

  • Uninstall settings

Program Settings

Program settings are related to the application as a whole: where it was installed, the serial number, and so on. The program settings are placed in a new subkey of HKEY_LOCAL_MACHINE\Software:

HKLM\Software\Company\Product\Version

Here, Company is the name of the program vendor, Product is the name of the software, and Version is the version number of the program. Here’s an example for Office 2003:

HKLM\Software\Microsoft\Office\11.0

User Settings

User settings are user-specific entries, such as the user’s name, preferences and options the user has selected, and so on. The user settings are stored in a subkey of HKEY_CURRENT_USER\Software:

HKCU\Software\Company\Product

File Types

File types refer to the file extensions used by the program’s documents. These extensions are associated with the program’s executable file so that double-clicking a document loads the program and displays the document. The extensions and file types are stored as subkeys within HKEY_CLASSES_ROOT.

If the application comes with OLE support, it will have a unique class ID, which will be stored as a subkey within HKEY_CLASSES_ROOT\CLSID.

Application-Specific Paths

In computing, a path is a listing of the folders that the operating system must traverse to get to a particular file. Windows XP uses a variation on this theme called application-specific paths. The idea is that if you enter only the primary name of a program’s executable file in the Run dialog box (select Start, Run), Windows XP will find and run the program. For example, WordPad’s executable file is Wordpad.exe, so you type wordpad in the Run dialog box, click OK, and WordPad opens.

Note

A file’s primary name is the part of the filename to the left of the dot (.). For example, the primary name of the file Excel.exe is excel.


Windows finds the program because the application’s executable file is associated with the particular path to the folder in which the file resides. These application-specific paths are set up in the following key:

HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths

Each application that supports this feature adds a subkey that uses the name of the application’s executable file (for example, Wordpad.exe). Within that subkey, the value of the Default setting is the full pathname (drive, folder, and filename) of the executable file. Note, too, that many applications also create a Path setting that specifies a default folder for the application.

Tip

It’s possible to set up your own application-specific paths.

Shared DLLs

It’s common for multiple applications to share common files such as a dynamic link library (.dll) or an ActiveX control (.ocx). Windows XP uses settings in the following key to keep track of how many applications are sharing a particular DLL:

HKLM\Software\Microsoft\Windows\CurrentVersion\SharedDlls

As you can see in Figure 1, the name of each setting is the full pathname of a DLL (or whatever), and the value is the number of applications that share the file.

Figure 1. The SharedDlls key keeps a running total of the number of applications that share a particular DLL file.

During the installation of most applications, the setup program checks to see whether any DLLs that it requires are already on the system. If so, it finds the appropriate settings within the SharedDlls key and increases their values by 1.

When you uninstall most applications, the uninstall program decrements the appropriate setting in the SharedDlls key for each DLL used by the application. When the usage counter for a DLL is 0, you see a dialog box asking whether you want to remove the DLL file, as shown in Figure 2. If you’re certain that the DLL was used only by the application you’re removing, click Yes. If you’re not sure, click No. (How can you be sure? The only way is if you compared the %SystemRoot% and %SystemRoot%\System folders before and after the install, as I described earlier.)

Figure 2. You see this dialog box if a DLL’s usage is down to 0 in the SharedDlls Registry key.


Caution

It’s possible that a DLL with a usage counter of 0 could still be used by another program, particularly a program that doesn’t know about the SharedDlls Registry key. A better approach would be to make a note of the DLL’s filename, click No, and then move the DLL to another folder. If none of your programs misses the file after a while, it’s safe to delete it.

Uninstall Settings

As I mentioned earlier, most applications also use the Registry to hold data related to uninstalling the application. To store this data, the setup program creates a subkey for the application within the following key:

HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
 
Others
 
- Windows XP : Practicing Safe Setups - Running Through a Pre-Installation Checklist
- Windows 7 : Troubleshooting Networks - Manual Troubleshooting
- Windows 7 : Letting Windows Troubleshoot the Network & Troubleshooting Network Printer Connections
- Windows Server 2003 : Using Automation to Manage Group Accounts
- Windows Server 2003 : Understanding Group Types and Scopes & Managing Group Accounts
- Security in Windows Vista : New and Improved Windows Vista Security Features
- Security in Windows Vista : Addressing Specific Security Concerns with Windows Vista
- Local Group Policy objects (part 2) : Managing the Local GPOs & GPOs in Active Directory
- Local Group Policy objects (part 1) : Administrators and Non-Administrators Local GPOs
- Structural Overview of a Group Policy object : Computer Configuration & User Configuration
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us