Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install a Delphi component package from the command line?

I am preparing an installer (Inno Setup) to install my component package into Delphi XE without having to manually fiddle in the IDE.

How do I install a Delphi component package (for example, MyComponent.bpl) into Delphi without having to manually do it via the 'Install Packages' menu item? Is it a registry key?

like image 334
Brian Frost Avatar asked Jul 25 '11 07:07

Brian Frost


People also ask

How do I add packages to Delphi?

dcu files, if they are included with the distribution -- must be in the Delphi Library Path. Choose Component > Install Packages from the IDE menu, or choose Project > Options and click the Packages tab. A list of available packages appears in the Design packages list box.

Which command is used to install packages?

Description. The Install-Package cmdlet installs one or more software packages on the local computer. If you have multiple software sources, use Get-PackageProvider and Get-PackageSource to display details about your providers.

How do I install a package in Linux?

Debian, Ubuntu, Mint, and other Debian-based distributions all use . deb files and the dpkg package management system. There are two ways to install apps via this system. You can use the apt application to install from a repository, or you can use the dpkg app to install apps from .


1 Answers

Yep, registry is your friend.

Packages:

HKEY_CURRENT_USER\Software\<Borcadero>\BDS\<version>\Known IDE Packages
HKEY_CURRENT_USER\Software\<Borcadero>\BDS\<version>\Known Packages

IIRC Known IDE Packages is for IDE extensions, and Known Packages for components (on the Tool Palette)

Library paths are in:

HKEY_CURRENT_USER\Software\<Borcadero>\BDS\<version>\Library

Note:

  • <Borcadero> stands for Borland, CodeGear or Embarcadero, depending on your Delphi version.
  • <version> is the IDE version, ie 7.0 for Delphi 2010.
like image 123
Marjan Venema Avatar answered Sep 19 '22 08:09

Marjan Venema