Delphi third-party Control installation Uninstall guide

Source: Internet
Author: User

Basic Installation
1, for a single control, Componet-->install component. -->pas or DCU file-->install;

2, for the control package with the *.dpk file, File-->open (*.DPK)-->install can be selected in the drop-down list box;

3, for the control package with *.BPL file, Install PACKAGES-->ADD-->BPL file name can be;

4, if the above install button is invalid, try compile button;

5, is the run time Lib in the option under the packages under the Runtimepackes Plus. If the compile-time prompt file can not be found, usually the installation directory of the control is not in the Delphi Lib directory, there are two ways to solve: (1) The anti-installation of the source files copied into the Delphi Lib directory;

(2) or tools-->environment options to add the control source code path to the Delphi Lib directory. Note: The installed controls are compatible with the version of Delphi that you are using. The control deletion is removed in Component/install packages. Choose Component/configure Palette ... With pages and two regions double-click the Components area, select the controls you want to remove, and the delete button below, but the system-provided controls are only hide, not delete. Open the package file that contains the control (*.DPK), remove the control file from it, and then recompile the package so that if the entire control package is to be deleted, project->option->packages, delete the packages,ok~

Delphi third-party control installation Uninstall guide because the components provide different ways, so the installation method is not the same, the following is a common form of the various components of the installation method introduced.

1 . Only one component of the DCU file. The DCU file is a compiled unit file, so the component is the author does not want to publish the source code. In general, the author must indicate which version of Delphi This component is suitable for, and if the version is incorrect, an error will occur at the time of installation. It is because there is no source code, to the user inconvenience, that is, once the Delphi version upgrade, this component can no longer be used, of course, some authors have given several versions of the DCU file, users choose to use as needed. The installation of such a component is: In the Component menu, select Install Component, in the dialog box "into the existing package" page, click "Browse" button after "Unit file name", In the Open File dialog box, set the file type to *.DCU, locate the DCU file you want to install, press the OK button to return to the to existing package page, and then press the OK button to install it. Note that at this time the Delphi will prompt DCLUSR40.DPK will be rebuilt, whether continue, OK. Here is the installation of components into the DCLUSR40.DPK package, this package from the file name can be seen as a user-defined component package, first installed in this package, the following are the notes. After installation there will be a message that the component has been registered and the information on which component page is installed, and so on to the palette, a new component page will typically appear with the components just installed.

2 . Only pas files or components that have both PAS and DCU files. This component because of the Pas file, that is, the author provides the source code, this is much better. The installation method and the above is the same, in the file type can be set to DCU can also be set to PAS, recommended to set as PAS, so that you can use Delphi recompile to see if there is a problem. After Delphi upgrade can only choose the Pas file installation, so as to recompile, so that the component can adapt to the new Delphi version. Such components are well worth using, according to the experience of the heart bell, no source components are best not to use, one is the Delphi version of the upgrade can not be used after the problem, moreover, when the program has a problem, the user cannot debug the component to determine whether there is a bug in the component.

3 . A component package with DPK files. Component packages with DPK files are generally composed of multiple components, which means that after installation there will be multiple components for use, and if only one component author is generally not made into DPK files, it can be published using the above method. For such packages, there will generally be a detailed installation documentation, such as the rxlib mentioned above, due to the complexity of the components and the sequencing of the installation, the author does not provide installation instructions that the user does not install correctly. If you do not have the installation documentation, install it using the following method: Under the File menu, select Open dpk file (choose *.dpk in the Files of Type list box), and in the package window that appears, click the Install button on the toolbar. If the Install button is in an invalid state, then press the Compile button to compile, in general, after compiling the Install button will be in a valid state, then press the Install button is OK.

4 . Package with BPL file. In general, this is also a component package consisting of a variety of components, which is actually a dynamic connection library file (DLL). For this package installation method is: Under the Component menu, select "Install Packages", and then click the Add button, in the Open File dialog box to find the corresponding BPL file open return, and then click the OK button.

5. The installation of the ActiveX control. To install this type of control, you need to first register with Regsvr32.exe and then select Import ActiveX Control entry in the Component menu. In the Import ActiveX Control Open window, only registered ActiveX controls appear in the list, select one and then press the Install button to install. If you have not registered with Regsvr32.exe in advance, you can press the Add button to find the OCX file for instant registration, register and then install.

Delphi third-party Control installation Uninstall guide A few notes :
1, after getting the components to see if there is a document, in general, in the documentation of how to install the guidance, some will have the properties of the components, events, methods of use, which is very important in use.

2, before the above components (package) installation operation, it is best to copy *.BPL to your system directory, the *.pas, *.DCU, *.DCR, *.DP Copy to the Delphi Lib directory.

3, before we mentioned the installation of DCU components, Choose is already existing dclusr40.dpk, of course, can also choose to install into a new package, if you choose a new package, you need to take a name, such as demo, in fact, after the installation of the user can find the DEMO.BPL, and cannot find DEMO.DPK. If you have installed a component into the DCLUSR40.DPK and want to install a component again, if you install it in DCLUSR40.DPK, you will be prompted after installation, the original installed component has been unregistered and you won't be able to use it. So it's not going to be the only one component that can be installed? You can use both components at the same time unless you install it into a new package. Of course, every installation of a component generates a new BPL file, but the BPL file adds a lot. Can you install several more components in the DCLUSR40.DPK? Of course it's possible. Here's how: Open the dclusr40.dpk file under the File menu, click the Add button, select the Add Unit page in the Open dialog box, and press the "Browse" button after the unit file name to open the component unit files, OK, In this way, you can add multiple components of the unit file, add complete, click the Compile button, and then press the Install button, if the unit file is compiled (DCU) can be directly press the Install button.

4, the deletion of components. Light will be installed can not, but also to delete it. Very simple, under the Component menu, select Install packages, locate the BPL in the list where the installation is located, press the Remove button, ok! Then the BPL file is completely deleted, if you do not delete the BPL file, the next time you can install the BPL component of the method of installation and use.

Delphi third-party Control installation Uninstall guide

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.