Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

The exe that isn't an exe

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.

1 Solution
usually i use upx,
if there is a need for a compact exe-file


meikl ;-)
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).  

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.
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...
frogAuthor Commented:
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

Independent Software Vendors: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now