Delphi Xe Install Component



Delphi xe install components

Cara Install Atau Remove Delphi XE Component/Package ( Komunikasi Delphi Via Comport ) 4 Agustus 2017 30 Oktober 2017 oleh yadishare, posted in Delphi XE5 Buat kalian para pengguna Delphi XE mungkin sedang atau malah pernah membutuhkan panduan bagaimana cara mengkomunikasikan program yang sedang kalian buat ke suatu device yang menggunakan. Download ComPort Library for free. TComPort by Dejan Crnila. Delphi/C Builder serial communications components. Delphi XE4 MS-Office components Delphi XE4 is delivered with 3 sets of Microsoft Office components (Word, Excel, Outlook, Power Point and Access): Office 2000, Office XP and Office 2010. None is installed by default. To install Office components, you must launch the IDE, select 'Component' menu and then 'Install packages'. For Delphi developers there are Delphi components available as VCL products, there are components and library products that will work with both your old IDE, C Builder and the new Embarcadero IDE environments, such as Embarcadero C Builder XE.

One of the things I missed most in Delphi 2005 was the VCL Component Install menu item in the Component menu. For reasons I still don’t quite understand, this expert was removed from the IDE. It was a quick way to install a component in the IDE, but since Delphi 2005, you had to manually create or open a package, manually add the component to it and then install it.

That is why I wrote this expert: it replaces the old Install Component expert under the Component menu. It allows you to pick a unit or units to install, to pick in which package it should go, and it opens the package and adds the units to it.

The wizard now also builds and installs the package. In a separate article, I describe how I did that.

Update: the wizard now also supports installing .dcu files, i.e. compiled units. These units must of course have been compiled with the same version of the compiler as your IDE uses.

Delphi and RAD Studio XE or newer

Those of you who have a copy of Delphi, C++Builder or RAD Studio XE, or newer, might have noticed it: This expert is now an integral part of the IDE. That is why I won’t be producing an XE version anymore.

Installation

The following assumes that $(BDS)lib (where $(BDS) is your RAD Studio or Delphi base directory) is on your system path. If it isn’t, then either change the package output directory of the projects to one that is on the system path, or add lib to the System path. If you don’t do this, your IDE might not start or start but now show the main window, which makes it unusable. I had this problem and it took me a while to find out why packages would install properly, but after closing, the IDE would not start anymore.

In other words: Always make sure the .bpl files are on the system path!

Installation is quite simple, but not automatic. Extract the zip file to a directory of your choice. Start the IDE in which it is to be installed. Open the file CompInstallerDevelopment.groupproj or CompInstallerDevelopment.bdsgroup, depending on the Delphi version, from the subdirectory for your version of Delphi (e.g. D2007). In the Project manager, you should see three projects (the NNN is a number between 100 and 140):

  • CompInstallComponentsNNN.bpl — This contains a component that must be installed before you open the CompInstallNNN.bpl project.
  • CompInstallNNN.bpl — This is the actuall component installer.
  • CompInstallFrameEditProject.exe — This is a help project that makes editing the frames in the project a little easier.

First, activate the CompInstallComponentsNNN.bpl project, right click it and select Install from the context menu. This will install the package and register the TMRUComboBox component in the IDE.

Then you can activate the CompInstallNNN.bpl project. Installation of this package is done the same way as described before, from the context menu. If the project was installed successfully, under the menu Component there should be a new menu item Install VCL Component.

You can test the expert by installing the test components in the CommonTestComponents directory.

Delphi Xe Install Components

Unfortunately, I couldn’t test the code in Delphi 2005 yet. The expert will, for now, only install in Delphi 2006, 2007, 2009 or 2010. I will try to change this, but since there are some problems with the OpenTools API (OTA) in Delphi 2005 anyway, I don’t promise anything.

Usage

Usage is straightforward. Fill in the blanks, and at the end, press Finish to generate or open the package and add the units to it. Help is not available yet, but I doubt you will need it.

Editing

The project requires MRUCombos.pas, and that is why I also included CompInstallComponents.dpk. It should be installed in the IDE to be able to edit the frames and form.

CompInstall.dproj (or CompInstall.bdsproj) is a package project, and the IDE doesn’t treat this kind of project like it treats a normal .exe project. The package contains four frames, and packages and frames are not on good terms.

Each time you re-start the project, you might get an error message saying that one of the frames or the form can not be found or loaded, especially if the last time you loaded it, one of the frames, or the dialog using them, was selected. In such cases, just click Cancel, and do not click Ignore or Ignore All.

If you click Ignore or Ignore All, the frames will probably be removed from the dialog, and it is very tedious to get them back on again, make them align alClient, give them their proper names, and connect all the event handlers. If you click Cancel, you can’t edit the forms or frames which the IDE could not load anymore, but you can still edit the code and install the package.

To be able to edit the frames or forms in the package, you must first remove them from the package, and then add them again in the following order:

  • First add CompInstallUnitsFrames.pas. Open the file and select the designer. In the designer, right click the frame and choose 'Add to Palette'. In the dialog, click away any error messages you might get about the component already being installed, and just install the frame again.
  • Do the same for CompInstallPackagebase.pas, i.e. add it to the project and to the palette.
  • Now add CompInstallNewPackagesFrames.pas and CompInstallExistingPackageFrames.pas to the project and the palette.
  • Finally, add CompInstallWizardDlg.pas to the project. Now you can edit everything, but the next time you open the project, you might have to go through the same procedure again.

But normal .exe projects don’t have these problems. So I created an .exe project (a VCL Forms Win32 project) and added all the frames and units to it. In the Project Manager, this is shown as CompInstallFrameEditProject.exe, and is also in the .zip file. Simply add that project to your project group, and the problem should be gone.

C++Builder

The latest version of the wizard will also install components in the C++Builder personality. You can add Delphi units as well as C++Builder units. It creates a C++Builder package that contains the components and installs it.

C++Builder 2006

Delphi xe 10

Unfortunately, I didn’t manage to make the Open Tools API of RAD Studio 2006 or C++Builder 2006 create a C++ package. I could create a package, but it did not look like one (no Contains or Requires sections, etc.) and it would not compile. You can of course create Delphi packages in RAD Studio 2006, but no C++ packages, using this wizard. If someone knows a way to make this happen, I’d love to hear about it.

The above problems did not occur in RAD Studio or C++Builder 2007 and above.

Legalese

Delphi xe download

I hope this code is useful to you. If you use some of it, please credit me. If you modify or improve the unit, please send me the modifications.

I may improve or enhance the unit myself, and I will try to post changes here. But this is not a promise. Please don’t request features.

Suggestions, remarks, flames, complaints, rewards, donations, etc. can be sent to my e-mail address.

Rudy Velthuis

Standard Disclaimer for External Links

These links are being provided as a convenience and forinformational purposes only; they do not constitute an endorsement oran approval of any of the products, services or opinions of thecorporation or organization or individual. I bear no responsibilityfor the accuracy, legality or content of the external site or for thatof subsequent links. Contact the external site for answers toquestions regarding its content.

Disclaimer and Copyright

The coding examples presented here are for illustration purposesonly. The author takes no responsibility for end-user use. All contentherein is copyrighted by Rudy Velthuis, and may not bereproduced in any form without the author's permission. Source codewritten by Rudy Velthuis presented as download is subject to thelicense in the files.

JEDI Code Library
  • Documents:
  • Documentation
    Search in JCL help
  • JCL links at :
  • JCL links at Github
  • About:
  • 1 JCL: JCL Installation
    • 1.1Automated installation

Automated installation

Default installation

If you're using either FreePascal, or a trial version of Delphi/C++Builder, or Turbo Delphi, see the 'Manual Installation' section below.

Otherwise (in most cases), the JCL should be installed using the automated installation process.

Delphi Xe 10

Automated Installation Process (recommended)

The recommended way to install the JCL is to run the source installer: once you've extracted the archive downloaded from one of the software sources, navigate into the JCL directory and execute 'install.bat'.

For each version of Delphi/C++Builder installed on the computer, this installer allows you customize the conditional defines, update the environment for the JCL, install some documentation, make the library units, install the packages and finally compile the demos.

The default options are recommended, make sure you understand what these options do before toggling their states. Finally you can install the library by clicking on the 'Install' button at the bottom of the form.

Binary packages

Delphi Xe 10.4

TODO

Installation for Turbo Delphi

The JEDI Code Library can be compiled targetting Turbo Delphi Explorer and Turbo Delphi Professional. Turbo Delphi Professional is recognized as BDS 2006, you have to download its command line compiler from CodeGear website at https://downloads.embarcadero.com/Item/24146 to install the full JCL on this tool.

To install the JCL targetting Turbo Delphi Explorer, consider the following checks:

  • If you have an other supported version of Delphi/C++Builder on this computer, it should automatically be detected and the installer will process as usual.
  • If you only have Turbo Delphi Explorer (and no other tools) on the computer, the installer cannot be compiled. You have to use the Turbo Explorer flavor of the JCL that contains a precompiled installer. However, you will not be able to install any experts.

Installation on C#Builder 1 and Delphi 8

These products cannot be used to build the JCL installer, you need an other supported product to install JCL experts on these products. These products are not able to use the JCL library as a runtime library. You cannot write managed applications and managed packages based on the JCL.

These products are not shipped with their native compilers, you have to download it from codecentral http://cc.embarcadero.com/:

Delphi Xe Download

  • The item https://downloads.embarcadero.com/Item/21333 contains the native compiler to be installed in Delphi 8.
  • The item https://downloads.embarcadero.com/Item/21334 contains the native compiler to be installed in C#Builder 1.

These zip files have to be extracted in the products directory using the standard pattern:

Manual Installation

Although it is not recommended, a manual installation is possible. You will have to manually configure options for the library. That is done by modifying an included file.

For each tool you want to install the JCL in, repeat the following steps:

  1. Open and edit included file to customize options:
    • For C++Builder 6: sourceincludejclc6.inc
    • For Delphi 6: sourceincludejcld6.inc
    • For Delphi 7: sourceincludejcld7.inc
    • For Delphi 2005: sourceincludejcld9.inc
    • For BDS 2006 (Delphi and C++Builder): sourceincludejcld10.inc
    • For CodeGear RAD Studio 2007 (Delphi for Win32 and C++Builder): sourceincludejcld11.inc
    • For Delphi 2009 and C++Builder 2009: sourceincludejcld12.inc
    • For Delphi 2010 and C++Builder 2010: sourceincludejcld14.inc
    • For Delphi XE and C++Builder XE: sourceincludejcld15.inc
    • For FreePascal: sourceincludejclfpc.inc
  2. In the IDE, open and compile package Jcl.dpk (or Jcl.bpk for C++Builder) located in a subdirectory of the 'packages' directory matching your version of the IDE. This package doesn't have to be installed since it doesn't provide any components.
  3. If you want to install experts, open package JclBaseExpert.dpk and compile it, then you can install all the experts you want (packages are located in the same directory).
Retrieved from 'https://wiki.delphi-jedi.org/w/index.php?title=JCL_Installation&oldid=228676'