问题
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.
回答1:
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
来源:https://stackoverflow.com/questions/2299031/adding-design-packages-bpls-in-delphi-ide-automatically