Search code examples
delphidelphi-2006tform

Registering a form in Object Repository (automated, by code or any other means)


I was doing some customization to my forms, since I want them with some published properties appear on Object Inspector. I've done the simple way: create the form, put it on object repository, created a package to register it with RegisterCustomModule.

I would like to know if anyone have a way to put it on Object Repository in a automated way (I want to simplify the installation of this on other machines).

I googled, but either nobody wrote something about it or I didn't find the correct keywords...


Solution

  • You have to do two things first:

    1. Add the file you want in the repository folder (for Delphi 2007, it's $PROGRAMFILES$\CodeGear\RAD Studio\BDS\5.0\ObjRepos).
    2. Update the BorlandStudioRepository.xml file in the same folder. You can look at it's current contents to see what needs to be added.

    Then create the registry entry under HKCU\Software\CodeGear\BDE\5.0\Known IDE Packages\Delphi to register your .BPL with the IDE.