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

感情迁移 提交于 2019-12-17 18:57:12

问题


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?


回答1:


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.


来源:https://stackoverflow.com/questions/6813024/how-to-install-a-delphi-component-package-from-the-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!