From df1efb7ef562ec18eb18f1477352c10483509fbe Mon Sep 17 00:00:00 2001 From: rosenfield Date: Mon, 22 Oct 2007 18:00:11 +0000 Subject: [PATCH] Workaround a Delphi bug: BDS 2006 does not load dependencies for a package anymore. Regression introduced at the same time as "demand loading" feature was added. Dependencies will now only be loaded if LoadLibrary happens to be able to find needed BPLs in system path. (If the My Documents folder starts breaking or disappearing from system path, we'll have to dump the files in system32 instead.) --- extra/install_ide_components.cmd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extra/install_ide_components.cmd b/extra/install_ide_components.cmd index d1e92b24..ad77a9fb 100644 --- a/extra/install_ide_components.cmd +++ b/extra/install_ide_components.cmd @@ -86,6 +86,14 @@ goto :start :install echo Installing component %1, package %2%package_suffix%.bpl. +rem +rem Drop a copy of all BPLs in a directory which is in PATH. +rem This is a workaround for bug #23225 in BDS 2006. +rem (technically a regression since Delphi 7 worked OK.) +rem +rem see here: http://qc.borland.com/wc/qcmain.aspx?d=23225 +rem +copy /y "%base_dir%\components\%1\build\*.bpl" "%USERPROFILE%\My Documents\Borland Studio Projects\Bpl\" %start_dir%\IdeBplInstall\IdeBplInstall.exe "%base_dir%\components\%1\build\%2%package_suffix%.bpl" "%1" set err=%errorlevel% echo.