FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to compress EXE file?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
How to compress EXE file?
Posted: Sun Oct 11, 2009 02:53 AM
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 2304 / 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)
Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Re: How to compress EXE file?
Posted: Sun Oct 11, 2009 04:01 AM

Hi Dutch,

You can used UPX

Regards

William, Morales

Saludos



méxico.sureste
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: How to compress EXE file?
Posted: Sun Oct 11, 2009 02:08 PM

Thanks William,

I will try it.

Regards,
Dutch

Regards,

Dutch



FWH 2304 / 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)
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: How to compress EXE file?
Posted: Sun Oct 11, 2009 02:54 PM

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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: How to compress EXE file?
Posted: Sun Oct 11, 2009 05:42 PM

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 2304 / 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)
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: How to compress EXE file?
Posted: Sun Oct 11, 2009 08:44 PM

Hola,

I use this option:

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

maybe this can be a help

regards

Marcelo

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: How to compress EXE file?
Posted: Sun Oct 11, 2009 10:34 PM

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

Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: How to compress EXE file?
Posted: Mon Oct 12, 2009 01:46 AM
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.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: How to compress EXE file?
Posted: Mon Oct 12, 2009 12:27 PM
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 2304 / 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)
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: How to compress EXE file?
Posted: Tue Oct 13, 2009 07:04 AM

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
Posts: 422
Joined: Mon Aug 17, 2009 12:18 PM
Re: How to compress EXE file?
Posted: Tue Oct 13, 2009 04:49 PM

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

So, I quit using it.

Saludos,



Eduardo
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: How to compress EXE file?
Posted: Mon Oct 19, 2009 02:21 PM
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
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: How to compress EXE file?
Posted: Tue Oct 20, 2009 12:15 AM

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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: How to compress EXE file?
Posted: Tue Oct 20, 2009 02:49 AM

>>
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
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: How to compress EXE file?
Posted: Tue Oct 20, 2009 07:00 AM

Dear All,

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

Thanks&Regards,
Dutch

Regards,

Dutch



FWH 2304 / 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)

Continue the discussion