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

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?

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.

Related

How to install Nuget package (.nupkg file) in Delphi IDE without using the GetIt Package Manager?

I am trying to use the TEdgeBrowser component in RAD Studio 10.2.
I want to apply that component by following the guide document below:
Using TEdgeBrowser Component and Changes to the TWebBrowser Component
The document uses the component after installing the package through Edge search in Getit Package Manager.
RAD Studio 10.2 GetIt was unable to find TEdgeBrowser:
I downloaded the package from the Nuget site, and try to install the package manually.
So I downloaded the nupkg file from the Nuget download link:
Microsoft.Web.WebView2 Download Link
In the document, the description of the component and package installation is completed by adding the downloaded DLL file to the executable file path.
How do I manually install packages and use components in the Delphi IDE using nupkg files?
I tried to install it using GetItCmd.exe, Nuget.exe, etc, but there aren't enough guides on how to do this, so I'm asking the question.
I downloaded Microsoft.Web.WebView2 0.9.488 package from the Nuget site, but it doesn't matter if I use the latest version.

How to install Indy on Delphi 10.3 Rio?

The help says "You can use GetIt Package Manager to discover and install additional third-party software onto RAD Studio." but Indy is not available in GetIt
I dowloaded newest files from Github. I run the Fullc_Rio.bat file then opened Indy260.groupproj but when compiling I got:
[Fatal Error] Cannot compile package 'IndySystem260' which is currently required by Delphi 10.3.
Indy comes pre-installed in every IDE version, and has been for a very long time.
However, if you want to install a newer version than what Embarcadero ships, you have to first remove the pre-installed version. This is mentioned in Indy's installation notes:
All package names are followed by X0 (where X0 is your Delphi/C++Builder/RAD Studio product version).
...
If Indy 10 is already installed, it needs to be uninstalled first:
Remove the pre-compiled design-time BPL files - dclIndyCoreX0.bpl and dclIndyProtocolsX0.bpl - from the IDE via the "Components > Install Packages" dialog.
Delete all of the existing binaries - IndySystemX0.*, (dcl)IndyCoreX0.*, and (dcl)IndyProtocolsX0.*
Delete any Indy 10 source files, if present.
Be sure to check for files in the IDE's \bin, \lib, and \source folders, \Indy subfolders, and OS system folders.
...
You can either:
Use the command-line FULLD#.BAT script that corresponds to your Delphi version.
Open the individual DPK files in the IDE and compile them, in the following order:
IndySystemX0.dpk (in Lib\System)
IndyCoreX0.dpk (in Lib\Core)
IndyProtocolsX0.dpk (in Lib\Protocols)
dclIndyCoreX0.dpk (in Lib\Core)
dclIndyProtocolsX0.dpk (in Lib\Protocols)
...
Refer to the installation notes for full instructions.
Indy is already installed in Rio during the product installation. It's used in parts of the RTL. It's already installed in all versions of Delphi.
If you open a new VCL or FMX application, click on a form to activate the designer, and go to the component palette, and enter TId in the search box, you can find the Indy related component pages in the palette.

Orpheus won't install in Delphi XE8

I'm trying to install the Orpheus library in Delphi XE8. I added the source path to the library path, and successfully compiled the run-time package (OrpheusDR.dpk). But when I try to install the design-time package (OrpheusDD.dpk) Delphi hangs immediately.
Is there a workaround (like patching certain files) to get the package installed after all?
PS: SysTools (another TurboPack package) installed without problems

What windows registry key I must use to install a delphi expert?

I need to create a installer for a Delphi IDE expert, So I found these two registry keys
HKEY_CURRENT_USER\Software\Embarcadero\BDS\x.0\Known IDE Packages
HKEY_CURRENT_USER\Software\Embarcadero\BDS\x.0\Known Packages
Which is the recomended key to install/Uninstall a Delphi IDE Expert?
Known IDE Packages is for packages that are used by the IDE itself (such as experts).
Known Packages is for packages that are used by projects (such as components and their design-time editors).

adding design packages (bpls) in delphi IDE (automatically)

I am trying to automate Delphi Environment regeneration we have bunch of bpl-s that has to be installed in a fresh delphi.
I need to automate this somehow from Delphi 5 it would be : Components->Install Packages->Add...
Any ideas?
Thanks.
The list of installed IDE packages is stored in registry, so you could update it there.
The actual location depends on Delphi version, on my machine for D7 it's:
HKEY_CURRENT_USER\Software\Borland\Delphi\7.0\Known Packages
and for D2007 it's
HKEY_CURRENT_USER\Software\Borland\BDS\4.0\Known Packages

Resources