DELPHI 7: How to install a DPK package into VCL??

PTRUSCOTT
PTRUSCOTT used Ask the Experts™
on
Dear Experts,
I just got a component that tells me to do the following:

Run Delphi and install APMAP components. Open package APMAP5.DPK (APMAP6.DPK, APMAP7.DPK) and install it into VCL, then open APDBMAP5.DPK (APDBMAP6.DPK, APDBMAP7.DPK) and install it.

I enter Delphi and click COMPONENT --> INSTALL COMPONENT

I get the DIALOG BOX SHOWN IN SCREEN 1 ATTACHED.  I click on the name of the .DPK file I am told to install and put it in PACKAGE FILE NAME as shown.  But how on earth to I tell it to place the new package in VCL?  I cannot find a *.dpk file in in my Borland Directory tree called VCL.DPK. Even if I could I don't know where to put it in this dialog box.  

Because I could see no other way to proceed I specified the *.dcu file in the top dialog box (see SCREEN 1).  Eventually I tried to compile it but received the error message that:

"required package designdgm not found".

Just shoot me but this is a really nasty way to design a user interface.  It must have be designed by that cheerful soul who first decided to call a program error a "FATAL" error.  

I know think I have a partially installed component so I need to know how to remove it.  
Sincerely,
Philip Truscott
ExpertsExchangeProblem.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Ferruccio AccalaiSenior developer, analyst and customer assistance

Commented:
You have simply to
1st: Open  APMAP7.DPK from Delphi Ide and Install it clicking 'Install'
2nd: Open  APDBMAP7.DPK the same way and install it as done for APMAP7.dpk

That's all. "Into VCL" means into the Delphi Ide component list. Seems that the author used a mistaken way to explain it

Author

Commented:
Dear Ferruccio68,
That does not seem to work.

I followed these steps.

After starting Delphi 7
I went to File on the main menu
Then I clicked OPEN
I navigate to the DPK package
and get the attached screen:

I click "Install" on the dialog box.

Then I get the same error message: "


"required package designdgm not found".

Do I need to place the APMAP .DPK package in a specific directory before I start this process?
-Phil
InstallPackage.jpg
Ferruccio AccalaiSenior developer, analyst and customer assistance

Commented:
Designdgm is stored into the Bin folder of your Delphi installation.
You should have into the package options source path the path pointing to the Bin directory (something like $Delphi\Bin).
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

Author

Commented:
The $Delphi\Bin directory really is in my search path (see the red arrow) on the attached file.  What I cannot seem to do is find a suitable .PAS file for the top part of the dialog box.  It allows me to select a DCU file for the top field but then it says "one or more line truncated" (the 3rd image) and then I see junk characters on the screen implying that it has loaded machine code into a window where it expects source code.  This really is the installation process from hell.
Sincerely,
Philip Truscott
CombinedProblems.jpg

Author

Commented:
Increasing Point Value to 400
Ferruccio AccalaiSenior developer, analyst and customer assistance

Commented:
You're trying to install it as a new package. NO!
Follow the instruction I gave you before.
You have to open the files .dpk and just install them.
About the 'designdgm not found': what version of delphi 7 are you using (enterprise, prof, studio)?

Author

Commented:
I am using Delphi 7 Personal Edition.  

When you say you want me to "Just open it" do you mean... On the main menu go to FILE --> OPEN

If I click on the .DPK file and then click on either COMPILE or INSTALL I still get the 'designdgm not found' message.  

Where am I supposed to check that the $Delphi\Bin item is in the search path?  If I click TOOLS--> ENVIRONMENT OPTIONS --> LIBRARY it does appear in the Library Path?  See the attached image file.  The Delphi-Bin item cannot be seen because the paths are wider that the viewable part of the field but it is there.

Is there a way to clean out a package that was badly installed in the past? Could that be the problem.



Environment.jpg
Senior developer, analyst and customer assistance
Commented:
@Where am I supposed to check that the $Delphi\Bin item is in the search path?  If I click TOOLS--> ENVIRONMENT OPTIONS --> LIBRARY it does appear in the Library Path?  See the attached image file.  The Delphi-Bin item cannot be seen because the paths are wider that the viewable part of the field but it is there.

Yes, it must be in that path. And also you have to check the dpk project option to see if any other wrong path is in it.

To uninstall a previous installed package you have to go in Component-Install package and remove the package form the list of installed packages (not just uncheking it, but selecting it and hitting remove)

Author

Commented:
That still does not work.  

Even if I go to the Delphi \ Bin directory with Windows Explorer and Add it in the path with copy and paste I still get the designdgm message not being found.

Author

Commented:
Am going to select the most recent comment since I solved the problem by using a more recent version of Delphi.

Author

Commented:
The solution offered was helpful advice but the ultimate solution also required the use of a different version of Delphi.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial