Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"..can't be installed because another package with the same base name.."

2,136 views
Skip to first unread message

Bob Richardson

unread,
Apr 16, 2010, 1:15:43 PM4/16/10
to
By mistake I removed (from D2007) a package from the "Design Packages"
list. Now, when I try to add the package back in I get the above error
message. How can I reinstall the package?

Skybuck Flying

unread,
Apr 16, 2010, 4:47:49 PM4/16/10
to
The way I do it is as follows (for sources of package):

1. Go to the folder where the package's source/project file/package file is
*.dpk/*.dprj

2. Open it by selecting "open" from file menu.

3. View->Project Manager from menu.

4. Right click on package name, select build from pop-up menu.

5. Right click on package name again and select install.

There are otherwise to do it though ;)

(If you don't have the source code for the package you might have to do it
differently...)

Try this (for binary-only (no source available) packages):

"Menu->Component Packages->Install Package->Add"

Then you can select the *.bpl which is the binary version of it.

(I never actually tried that I think ;) :))

Bye,
Skybuck :)


Rudy Velthuis

unread,
Apr 17, 2010, 9:07:44 AM4/17/10
to
Bob Richardson wrote:

Restart and try again. The BPL may still be loaded and some settings
not removed yet while Delphi is still running. So close the IDE and
restart it.

--
Rudy Velthuis http://rvelthuis.de

"Everything that can be invented has been invented."
-- Charles H. Duell, Commissioner, U.S. Office of Patents, 1899

Bob Richardson

unread,
Apr 17, 2010, 2:47:42 PM4/17/10
to
On Apr 16, 1:47 pm, "Skybuck Flying" <IntoTheFut...@hotmail.com>
wrote:

> The way I do it is as follows (for sources of package):
>
> 1. Go to the folder where the package's source/project file/package file is
> *.dpk/*.dprj
>
> 2. Open it by selecting "open" from file menu.
>
> 3. View->Project Manager from menu.
>
> 4. Right click on package name, select build from pop-up menu.
>
> 5. Right click on package name again and select install.
>

I successfully built the package with the above method, however, the
components in the package were still not visible in the Tool Palette.

Skybuck Flying

unread,
Apr 17, 2010, 4:39:26 PM4/17/10
to
Things you can try to fix it:

1. You probably tried to install the same package or something else which
failed or whatever... first try removing that.
Remove the package as well. Then try re-install.

If that fails and the components still not show up try this:

2. Find the source code for the package and look for the "register"
function. It will contain something looks like this:
[TabName]

That "TabName" could be anything... that's the tab name that will be used
for the tool palette if it doesn't exist it would be created.

Try changing it to something new... like:
[TabNameWhatever2]

Then try to install the package, the components should show up on the new
tab.

Other things to check:

3. "Tools->Options->Environment Options->Delphi Options->Library"

Look at library path... I think the folder where the package's*.bpl is needs
to on it.

If the package's folder/path is not in it try adding it manually yourself.

4. Open the package, check project options..

Check that it says: "Design and Runtime" and "explicit rebuild"

Try install again.

If that don't fixes it... then you probably have a deeper problem with other
packages and you might need to solve that first ?!?

By the way... is this a custom/user developed package or a "standard
package" that ships with delphi ? ;)

Bye,
Bye,
Skybuck.


Skybuck Flying

unread,
Apr 21, 2010, 3:03:54 AM4/21/10
to
Hmm...

I just got the error message you mentioned ;)

It happens when there are two packages with the same filename in different
folders.

Delphi does not allow it.

The solution is to rename one of the packages to solve the conflict.

Bye,
Skybuck.


0 new messages