Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Zipping a .exe
Wed, Nov 21 2007 11:23 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate


This one has been bugging me for a while.

I compile my app and it comes out at around 6.8Mb when I zip it to email that drops to c2.9Mb. I know there are string constants in there but.

Can anyone explain how and why a .exe can compress that much.

Roy Lambert
Wed, Nov 21 2007 11:42 AMPermanent Link

Eryk Bottomley
Roy,

> Can anyone explain how and why a .exe can compress that much.

Sure - lots of repeated byte sequences that can be huffman encoded
(relatively) efficiently - embedded DFMs in particular. The only type of
file that won't compress is 'random junk' and the contents of EXE files
are far from random.

Eryk
Wed, Nov 21 2007 12:08 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Eryk


I did what I should have done before posting and opened one up in Notepad - isn't there a lot of plain text.

Roy Lambert
Wed, Nov 21 2007 6:31 PMPermanent Link

"Rita"
Pack your exe before you ship it use a free packer suxh as
UPX from  http://upx.sourceforge.net
It also stops them guys with long hair and big bushy beards
messing about with the text in your file and reverse engineering
your code, well to some degree it does Wink

Rita



"Roy Lambert" <roy.lambert@skynet.co.uk> wrote in message
news:D85710CA-7EBA-4280-8091-06112128154C@news.elevatesoft.com...
>
> This one has been bugging me for a while.
>
> I compile my app and it comes out at around 6.8Mb when I zip it to email
> that drops to c2.9Mb. I know there are string constants in there but.
>
> Can anyone explain how and why a .exe can compress that much.
>
> Roy Lambert
>

Wed, Nov 21 2007 7:42 PMPermanent Link

Lance Rasmussen

Jazzie Software

Avatar

Team Elevate Team Elevate

Roy,

I agree with Rita there.

I've used UPX a lot to tighten up things.  They released 3.0 a few months
ago and it works well.

Installshield actually uses UPX if you say to compress your install.   Where
as InstallAware uses 7Zip.

Using with Finalbuilder (love it), the action for UPX'ing during a build is
slick.

Lance

"Rita" <nospam@nospam.com> wrote in message
news:6E62AA0A-9DD1-4360-B261-92FFE95F1C00@news.elevatesoft.com...
> Pack your exe before you ship it use a free packer suxh as
> UPX from  http://upx.sourceforge.net
> It also stops them guys with long hair and big bushy beards
> messing about with the text in your file and reverse engineering
> your code, well to some degree it does Wink
>
> Rita
>
>
>
> "Roy Lambert" <roy.lambert@skynet.co.uk> wrote in message
> news:D85710CA-7EBA-4280-8091-06112128154C@news.elevatesoft.com...
>>
>> This one has been bugging me for a while.
>>
>> I compile my app and it comes out at around 6.8Mb when I zip it to email
>> that drops to c2.9Mb. I know there are string constants in there but.
>>
>> Can anyone explain how and why a .exe can compress that much.
>>
>> Roy Lambert
>>
>
>
Thu, Nov 22 2007 12:11 PMPermanent Link

"Fons Neelen"
PECompact at http://www.bitsum.com/index.asp is another good tool.

Fons
Image