Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4008220
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:43:40+00:00 2026-05-20T08:43:40+00:00

I am looking for an elegant solution how to prepare both IDE and build

  • 0

I am looking for an elegant solution how to prepare both IDE and build script of a Delphi 2010 project. For the moment I am able to create a custom registry key for this project with necessary Known Packages added to registry before starting IDE, yet most of the design time packages require runtime packages and there are errors during loading IDE (or when selecting packages in Install Packages window).

Moving all runtime packages into $(BDSCOMMONDIR)\Bpl works and this is the only place Delphi seems to look in when searching for package dependencies. Is it possible to force delphi to look for package dependencies in arbitrary, multiple locations? In example below these locations are: $(Projects)\Delphi2010\CommonControls\bpl\ and $(ExternalComponents)\Delphi2010\DevExpress\Library\Delphi14.

The registry file I use is:

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\CodeGear\ProductName\7.0\Disabled Packages]
[-HKEY_CURRENT_USER\Software\CodeGear\ProductName\7.0\Known Packages]

[HKEY_CURRENT_USER\Software\CodeGear\ProductName\7.0\Known Packages]
"$(Projects)\\Delphi2010\\CommonControls\\bpl\\CommonControls.bpl"="Common Controls"
"$(ExternalComponents)\\Delphi2010\\DevExpress\\Library\\Delphi14\\dcldxCoreD14.bpl"="ExpressCoreLibrary by Developer Express Inc."
"$(ExternalComponents)\\Delphi2010\\DevExpress\\Library\\Delphi14\\dclcxLibraryD14.bpl"="Express Cross Platform Library by Developer Express Inc."
"$(ExternalComponents)\\Delphi2010\\DevExpress\\Library\\Delphi14\\dcldxDockingD14.bpl"="ExpressDocking Library by Developer Express Inc."
"$(ExternalComponents)\\Delphi2010\\DevExpress\\Library\\Delphi14\\dclcxSpreadSheetD14.bpl"="ExpressSpreadSheet by Developer Express Inc."
"$(ExternalComponents)\\Delphi2010\\DevExpress\\Library\\Delphi14\\dcldxSBD14.bpl"="ExpressSideBar by Developer Express Inc."
"$(ExternalComponents)\\Delphi2010\\DevExpress\\Library\\Delphi14\\dcldxBarD14.bpl"="ExpressBars by Developer Express Inc."
"$(ExternalComponents)\\Delphi2010\\DevExpress\\Library\\Delphi14\\dcldxBarDBNavD14.bpl"="ExpressBars DBNavigator by Developer Express Inc."
"$(ExternalComponents)\\Delphi2010\\DevExpress\\Library\\Delphi14\\dcldxBarExtDBItemsD14.bpl"="ExpressBars extended DB items by Developer Express Inc."
"$(ExternalComponents)\\Delphi2010\\DevExpress\\Library\\Delphi14\\dcldxBarExtItemsD14.bpl"="ExpressBars extended items by Developer Express Inc."
"$(ExternalComponents)\\Delphi2010\\DevExpress\\Library\\Delphi14\\dcldxRibbonD14.bpl"="ExpressBars Ribbon controls by Developer Express Inc."

And a batch file to start IDE:

regedit.exe /S ProductName.reg
start "delphi" "%DELPHI2010%\bin\bds.exe" -rProductName
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:43:41+00:00Added an answer on May 20, 2026 at 8:43 am

    All Delphi requires is that runtime packages are somewhere on the system path.

    If Delphi seems to be looking only in the BDSCOMMONDIR folder that is because that is the only folder with your and your third party bpl’s that is also on your system path.

    So all you should need to do is add the values for both $(Projects)\Delphi2010\CommonControls\bpl\ and $(ExternalComponents)\Delphi2010\DevExpress\Library\Delphi14 to your system path.

    However, the system path is limited in length. If you have enough component libraries this approach would soon eat that all up. So you really need to consider putting all your run-time libraries into a single directory. Or use two: (one for your own run-time libraries and one for third party run-time libraries.

    And this does not need to be the default folder used for the BDSCOMMONDIR environment variable. You can override the folder to which the BDSCOMMONDIR environment variable points. Simply add an override using Tools | Environment options | Environment variables.

    After adding the override to point to the folder where you want all your third party (run-time) libraries to go, recompile them. If the components are well behaved they should use the default settings for their output location and that means their bpl’s should end up in the new location.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for an elegant solution to (within vim script) iterate over all
I'm looking for an elegant, high performance solution to the following problem. There are
I am looking for an elegant solution for the following problem. Let's assume we
I'm looking for guidance on how to architect an elegant solution to what has
Arising out of this question, I'm looking for an elegant (ruby) way to compute
I am looking for a more elegant way of concatenating strings in Ruby. I
Looking to do a very small, quick 'n dirty side project. I like the
Looking at the C# project templates in VS2008 and the offerings are WPF User
I'm looking for an elegant way in Vimscript to check if a file exists
I'm looking for an elegant way to change multiple vectors' datatypes in R. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.