Link to home
Start Free TrialLog in
Avatar of frog
frog

asked on

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.

Avatar of kretzschmar
kretzschmar
Flag of Germany image

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

http://upx.sourceforge.net/

meikl ;-)
ASKER CERTIFIED SOLUTION
Avatar of -mac10-
-mac10-

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zodiac7
zodiac7

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...
Avatar of frog

ASKER

Yes!  
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?