Advanced Registry Cleaner PC Diagnosis and Repair
Beyond the executable file, an application may require a number of supporting files, such as DLLs, package files, and helper applications. In addition, the Windows registry may need to contain entries for an application, from specifying the location of supporting files to simple program settings. The process of copying an application's files to a computer and making any needed registry settings can be automated by an installation program, such as InstallShield Express. These are the main deployment concerns common to nearly all types of applications
Obviously, when creating database applications that are to be run on various machines, the connection to the data source should not be hard-coded in the executable. In other words, the database file may be located anywhere on the user's computer - the connection string used in the TADOConnection object must be created at run time. One of the suggested places to store the path to the database is the Windows Registry. In general to create a connection string at run time you have to a) place the Full Path to the database in Registry and b) each time you start your application, read the Registry, create the ConnectionString and Open the ADOConnection. Here's a sample code.
You can add the server information to the Windows Registry by running this application on the target machine (the computer where you want to install the OLE Automation server), passing to it the regserver parameter on the command line. You can do this by selecting Start Run, by using the Explorer or File Manager, or by running the program within
The result of this command is the creation of an assembly called interoptest1.dll. The assembly must now be registered, using the regasm utility. Regasm is similar in concept to tregsvr it creates entries in the Windows registry that allow the component to be exposed to unmanaged COM clients.
However, this time I've made the reference to the database a little more flexible. Instead of typing in the database name at design time, I've extracted the InterBase folder from the Windows Registry (where Borland saves it while installing the programs). This is the code executed when the program starts For more information about the Windows Registry and INI files, see the related sidebar in Chapter 10, The Architecture of Delphi Applications.
Setup toolkits automate the process of creating installation programs, often without needing to write any code. Installation programs created with Setup toolkits perform various tasks inherent to installing Delphi applications, including copying the executable and supporting files to the host computer, making Windows registry entries, and installing the Borland Database Engine for BDE database applications. If the application uses runtime packages, those package files need to be distributed with the application. InstallShield Express handles the installation of package files the same as DLLs, copying the files and making necessary entries in the Windows registry. You can also use merge modules for deploying runtime packages with MSI-based setup tools including InstallShield Express. See the next section for details.
A better approach would be to extract these values from the Windows Registry, where all these names are listed. The Edit method is very straightforward, as it simply creates and displays a dialog box. You'll notice that we could have just displayed the Open dialog box directly, but we decided to add an intermediate step to allow the user to test the sound. This is similar to what Delphi does with graphic properties. You open the preview first, and load the file only after you've confirmed that it's correct. The most important step is to load the file and test it before you apply it to the property. Here is the code of the Edit method
A lot of information related to the status of the Delphi environment is saved in the Windows Registry, as well as in DSK and other files. I've already indicated a few special undocumented entries of the Registry you can use to activate specific features. You should explore the section of the Registry to examine all the settings of the Delphi IDE (including all those you can modify with the Project Options and the Environment Options dialog boxes, as well as many others).
Technically, new Wizards come in two different forms. Wizards may be part of components or packages, and in this case are installed the same way you install a component or a package. Other Wizards are distributed as stand-alone DLLs. In this case you should add the name of the DLL in the Windows Registry under the key Software Borland Delphi x.0 Experts.
On the Windows platform, TldMimeTable HO supplements these values by harvesting content types from the Windows HKEY_CLASSES_ROOT Registry key. On the Linux platform, there is no universal counterpart to the Windows Registry for MIME types. A text-based configuration file is normally present in most Linux distributions. But it's name and location in the file system hierarchy is different for each family of distributions. Each Desktop Window manager, and many applications, maintain their own MIME type configuration files. Their names and locations are almost always radically different, too. On the Linux platform, no additional MIME types are loaded other than the known values used for both development platforms.
If you want your application to use a different resource module than the one that matches the locale of the local system, you can set a locale override entry in the Windows registry. Under the key, add your application's path and file name as a string value and set the data value to the extension of your resource DLLs. At startup, the application will look for resource DLLs with this extension before trying the system locale. Setting this registry entry allows you to test localized versions of your application without changing the locale on your system. For example, the following procedure can be used in an install or setup program to set the registry key value that indicates the locale to use when loading Delphi applications
Rregkey Allows you specify an alternate base registry key so you can run two copies of the IDE using different configurations. This allows component developers to debug a component at design-time by using the IDE as the hosting application without the debugging IDE interfering by trying to load the component package being developed
There are advanced features of Delphi 6 code completion that aren't easy to spot. One that I found particularly useful relates to the discovery of symbols in units not used by your project. As you invoke it (with Ctrl+spacebar) over a blank line, the list also includes symbols from common units (such as Math, StrUtils, and DateUtils) not already included in the uses statement of the current one. By selecting one of these external symbols, Delphi adds the unit to the uses statement for you. This feature (which doesn't work inside expressions) is driven by a customizable list of extra units, stored in the registry key Delphi 6.0 CodeCompletion ExtraUnits.
With ADO's connection pooling enabled, ADO Connection objects are placed in a pool when the application destroys them. Subsequent attempts to create an ADO connection will automatically search the connection pool for a connection with the same connection string. If a suitable connection is found, it is reused otherwise, a new connection is created. The connections themselves stay in the pool until they are reused, the application closes, or they time out. By default, connections will time out after 60 seconds, but from MDAC 2.5 onward you can set this using the HKEY_CLASSES_ROOT CLSID SPTimeout registry key. The connection pooling process occurs seamlessly, without the intervention or knowledge of the developer. This process is similar to the BDE's database pooling under Microsoft Transaction Server (MTS) and COM+, with the important exception that ADO performs its own connection pooling without the aid of MTS or COM+.
|WiseFixer Registry Cleaner|
|RegCure Completely clean your windows registry|
Official Download Page PC Repair Tools
The legit version of PC Repair Tools is not distributed through other stores. An email with the special link to download the ebook will be sent to you if you ordered this version.