The exe that isn't an exe

Posted on 2003-03-24
Medium Priority
Last Modified: 2010-04-03
I have read past answers to questions about reducing the size of the compiled exe file and I will try some of the suggestions.

An even bigger problem for me is that my compiled exe isn't a stand alone exe file.
It still needs VCL30.DPL (and a couple of smaller .dpls) for it to run.
The result is that a very small application (and the dpls) won't fit on a 1.4Mb floppy.

So how do I get Delphi to put everything into the exe file?
(And of course only the bits it actually needs.)
I have looked at the compiler directives, etc, and can't find what I am doing wrong.

Question by:frog
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 27

Expert Comment

ID: 8200990
usually i use upx,
if there is a need for a compact exe-file


meikl ;-)

Accepted Solution

-mac10- earned 200 total points
ID: 8201236
to make a stand alone EXE...
project options | packages
uncheck 'Build with runtime packages'
this will cause the exe to have all bpls required to be compiled/linked into a single file (exe).  


Expert Comment

ID: 8201891
upx the VCL30.DPL, I think its a dll so should compress fine with upx, alternatively try 7zip (7zip.org) for some good compression, I would suggest you use nsis2 installer if you actually need a installer it has a very low overhead.

Expert Comment

ID: 8205085
Disable "Build with Runtime files" from project option. It will create only self executable EXE. You won't need any DPL (Delphi Package Library) anymore...

Author Comment

ID: 8208725
Thanks -mac10- and Munim,
uncheck 'Build with runtime packages' did it.

I now have one application that won't compile without the runtime packages.
It uses the Math unit.
I assume it is in a runtime package but not in a designtime package.
I have installed all DCL* in \bin and \lib but it still isn't there.
Any idea where it might be?


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question