Question

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...

Was it helpful?

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.

OTHER TIPS

Since nobody else is giving answers, let me tell you would I would try.

I would go to the registry and export a copy of the Delphi branch before registering the form in the repository, then register and save another copy, and compare them in a difference viewer. If you're lucky, the information is stored there and you can deduce what registry entries you need to add to register... you may be able to just ship a .reg file.

BTW, that is how we configure our Delphi installations at the company I work at. Keeps everything the same...

If it doesn't work, the config is probably stored somewhere in the file system. You could employ similar forensic methods to attempt to reverse engineer how the registration is encoded there...

If it's on a local network you could have each developer use the same Shared Repository (Environment Options) and install the design package in their IDE.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top