🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.deployment
Article #24

Re: deploy exe file

#24
From: Ed Mulroy [TeamB]
Date: Sat, 30 Apr 2005 13:24
53 lines
3232 bytes
From the question it seems that your project is built as Dynamic 
LInked.  The compiler's runtime libraries and packages already exist 
on your machine.  The project is built to use those items that are on 
your machine instead of building their code into your EXE file.

To change that, do these things:

Under Project|Options|Compiler
  uncheck "Use dynamic RTL"
Under Project|Options|Packages
  uncheck "Build with runtime packages"
Select Project|Build

The change above changes the project to Static Linked.  Those items 
from the runtime libraries and packages that are used by the project 
are built into the EXE.  No external DLLs or Packages are needed but 
the code used from them is now inside the EXE file so it is larger.

Note that you do not need to do a BCB install on the other machine to 
run a dynamic linked program on it.  What is needed is for the DLLs 
and Packages that the program uses to be on the target machine.  If 
you are creating many programs to run on the target machine it usually 
more efficient to dynamic link so that only one copy of the code from 
those other items is on the target machine.  If only one or two 
programs are to be on that machine then static linked is most likely 
the way to go.

You can find out what DLLs and packages are needed with a command like 
this:

  tdump -em. ProgName.exe
  (do not overlook the '.' at the end of the '-em.' above)

That will give you a list of the DLLs and Packages (tdump calls them 
'modules') used by the EXE.

Because they can also use such things you need to repeat the command 
for the DLLs and Packages that are reported to build a full list of 
what is used.

Those needed items would then be placed onto the target machine in 
some combination of the same directory as the program or in the system 
path (one of the directory locations shown when you give the command 
PATH).

.  Ed

> Roee Bachar wrote in message
> news:42734723@newsgroups.borland.com...
>
> I'm using BCB V6.
> How do I deploy only exe file that can run without the need of
> BCB install on that machine
Technical Details
Message-ID: <42738705@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feeder.xsnews.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42734723@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,130312e227169d99
X-Google-Attributes: gidf8e54,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ed Mulroy [TeamB]" <dont_email_me@invalid.com>
Newsgroups: borland.public.cppbuilder.deployment
References: <42734723@newsgroups.borland.com>
Subject: Re: deploy exe file
Date: Sat, 30 Apr 2005 09:24:02 -0400
Lines: 55
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 12.161.27.41
Message-ID: <42738705@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114867461 12.161.27.41 (30 Apr 2005 06:24:21 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feeder.xsnews.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail