BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to show my app the path to BPL's

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Deployment
View previous topic :: View next topic  
Author Message
Zbigniew Lipinski
Guest





PostPosted: Wed May 11, 2005 8:40 pm    Post subject: How to show my app the path to BPL's Reply with quote



Hi,

I want to distribute to my users one small application
(upgrade installer), compiled with VCL40.BPL runtime
package and I want it to run correctly in any directory.
The trouble is that, although all my users have
VCL40.BPL file on their disks, the directory where
it is located is not on system path.

It would be nice if I could set the Path variable before
an attempt to load VCL40.BPL is made, but, of course, it is
made at the very start of EXE, before any instruction
compiled from my source code is executed.

I'm starting to think of writting a console app which
will set Path and then generate (from resources) and run
the actual application, which will inherit the environment
of the calling process. However I don't like that idea at all.

Perhaps somebody has a better one?

(As you have already guessed, I'm using D4)

Thanks in advance,

Zbigniew Lipinski




Back to top
Bill Todd
Guest





PostPosted: Wed May 11, 2005 8:51 pm    Post subject: Re: How to show my app the path to BPL's Reply with quote



I assume there is a reason that you have rejected the obvious solution
of putting VCL40.BPL in one of the directories that Windows searchs
automatically such as SYSTEM32 or the EXE directory.

--
Bill Todd (TeamB)
Back to top
Zbigniew Lipinski
Guest





PostPosted: Wed May 11, 2005 9:09 pm    Post subject: Re: How to show my app the path to BPL's Reply with quote




Użytkownik "Bill Todd" <no (AT) no (DOT) com> napisał w wiadomości news:4282704b$1 (AT) newsgroups (DOT) borland.com...
Quote:
I assume there is a reason that you have rejected the obvious solution
of putting VCL40.BPL in one of the directories that Windows searchs
automatically such as SYSTEM32 or the EXE directory.

Bill,

The BPL's are in the EXE directory of the main application
(the one that will be upgraded). Now I want my users
to download the upgrade installer and to run it wherever
they want, not neccessarily in the Exe directory of the main app.
And because the upgrade installer (which will be a sort of
self extracting archive with some additional functions) will
be distributed via the Internet, it would be nice if it could
use VCL40.BPL, which is already on disk, installed together
with the main application.

ZL




Back to top
Bill Todd
Guest





PostPosted: Thu May 12, 2005 1:32 am    Post subject: Re: How to show my app the path to BPL's Reply with quote

If VCL40.BPL is in the EXE directory and that is the startup directory
then Windows will find it. If you are saying that there is already an
EXE on the users computer with VCL40.BPL in its directory and the user
is going to install another EXE in another directory you have a
problem. The best long term solution is to move VCL40.BPL to the
system32 directory. The only other option is to add the directory that
contains VCL40.BPL to the path or put the new EXE in the same directory
as the old one.

--
Bill Todd (TeamB)
Back to top
Zbigniew Lipinski
Guest





PostPosted: Thu May 12, 2005 8:07 pm    Post subject: Re: How to show my app the path to BPL's Reply with quote


Użytkownik "Bill Todd" <no (AT) no (DOT) com> napisał w wiadomości news:4282b24a$1 (AT) newsgroups (DOT) borland.com...

Quote:
The best long term solution is to move VCL40.BPL to the
system32 directory. The only other option is to add the directory that
contains VCL40.BPL to the path or put the new EXE in the same directory
as the old one.

Thanks, Bill. I considered all the above solutions, but every of them
has some drawback for the users. I hoped that maybe there was
possible some trick like loading BPL's dynamically or something
of that sort. But never mind, I shall probably write the upgrade
installer without using VCL or, in the worst case, the users will have
to download two or three hundred kilobytes more.

Regards,

Zbigniew Lipinski




Back to top
Bill Todd
Guest





PostPosted: Thu May 12, 2005 8:51 pm    Post subject: Re: How to show my app the path to BPL's Reply with quote

You can load BPL's dynamically. There are articles on BDN that show how
to do so. if you know where the BPL is then that might solve your
problem and I should have mentioned it.

--
Bill Todd (TeamB)
Back to top
Zbigniew Lipinski
Guest





PostPosted: Thu May 12, 2005 9:27 pm    Post subject: Re: How to show my app the path to BPL's Reply with quote

Quote:
You can load BPL's dynamically. There are articles on BDN that show how
to do so. if you know where the BPL is then that might solve your
problem and I should have mentioned it.

Oh, thanks - so I'm going to find that article.

Zbigniew Lipinski


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Deployment All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.