How to compress EXE file?

Post Reply
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

How to compress EXE file?

Post by dutch »

Dear All,

I use FWH9.07+xHb (Fivetech) 1.2.1 and UEStudio. The EXE file is 4.7 Mb. but when I compress to zip file, the size is only 1.7 Mb.
How can I compress EXE file to smaller than 4.7 Mb. as BLINKER EXECUTABLE COMPRESS in BLinker.

Best regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
wmormar
Posts: 1050
Joined: Fri Oct 07, 2005 10:41 pm
Location: México
Contact:

Re: How to compress EXE file?

Post by wmormar »

Hi Dutch,

You can used UPX

Regards
William, Morales
Saludos

méxico.sureste
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to compress EXE file?

Post by dutch »

Thanks William,

I will try it.

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: How to compress EXE file?

Post by driessen »

Dutch,

I want to ask you what your reason might be to compress a EXE-file of 4.7 MB ?

Thanks.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to compress EXE file?

Post by dutch »

Dear Driessen,

If the file size is smaller than, the tranfer file is more faster and load time will be reduce. The UPX is not successful, it show an error "The application failed to initialize properly (0x000005).". I try many options but it still shows the same.

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Marcelo Via Giglio
Posts: 1033
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: How to compress EXE file?

Post by Marcelo Via Giglio »

Hola,

I use this option:

upx <exe-file> -9 --lzma --compress-exports=0

maybe this can be a help

regards

Marcelo
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: How to compress EXE file?

Post by Rick Lipkin »

Dutch

I use a product called ASPack ..

http://www.aspack.com/

This product compresses .exe, .dll .. seeks to work just fine for me xHarb and FWH.

Rick Lipkin
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: How to compress EXE file?

Post by hua »

dutch wrote:The UPX is not successful, it show an error "The application failed to initialize properly (0x000005).". I try many options but it still shows the same.
Dutch,
I've been using upx all these times and never had any problem with it. I've been using it without specifying any options. Just a plain "upx <exe name>"
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to compress EXE file?

Post by dutch »

Dear William Marcelo Via Giglio, Rick and Hua,
Marcelo Via Giglio wrote:Hola,

I use this option:

upx <exe-file> -9 --lzma --compress-exports=0

maybe this can be a help

regards

Marcelo
It work great without any error.
I will try ASPack too.

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

Re: How to compress EXE file?

Post by Marco Turco »

Try Pecompact
http://www.bitsum.com/

This executable compressor can also crypt the app avoiding the code debugging.
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
mgsoft
Posts: 398
Joined: Mon Aug 17, 2009 12:18 pm
Location: España

Re: How to compress EXE file?

Post by mgsoft »

I tried Pecompact and UPX and in some cases, the exe does not run. It showns nothing.

So, I quit using it.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: How to compress EXE file?

Post by nageswaragunupudi »

mgsoft wrote:I tried Pecompact and UPX and in some cases, the exe does not run. It showns nothing.

So, I quit using it.
I confirm facing this problem in some cases and on some servers. As I had no control on the customers' server configurations, I had to quit compressing. In fact I had no clue why the compressed exes were not running on those configurations and what could be done to make them work.
Regards

G. N. Rao.
Hyderabad, India
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: How to compress EXE file?

Post by fraxzi »

Dear All,

In my experiences in compressing xHB+FWH apps, it is always the anti-virus preventing the .exe to decompress...

I also used diff compressor like aspack, pklite and others. But the best so far and free is upx.

If you have anti-virus, add your .exe to trusted application. Like I did and problem executing apps solved.


Regards
:idea:
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: How to compress EXE file?

Post by nageswaragunupudi »

>>
If you have anti-virus, add your .exe to trusted application. Like I did and problem executing apps solved.
>>
Thanks for the useful information.
Regards

G. N. Rao.
Hyderabad, India
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to compress EXE file?

Post by dutch »

Dear All,

I've used UPX and it will compress from 4.7Mb to 1.2Mb successful now.

Thanks&Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Post Reply