How to compress EXE file?

How to compress EXE file?

Postby dutch » Sun Oct 11, 2009 2: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 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
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to compress EXE file?

Postby wmormar » Sun Oct 11, 2009 4:01 am

Hi Dutch,

You can used UPX

Regards
William, Morales
Saludos

méxico.sureste
User avatar
wmormar
 
Posts: 1074
Joined: Fri Oct 07, 2005 10:41 pm
Location: México

Re: How to compress EXE file?

Postby dutch » Sun Oct 11, 2009 2:08 pm

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
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to compress EXE file?

Postby driessen » Sun Oct 11, 2009 2: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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: How to compress EXE file?

Postby dutch » Sun Oct 11, 2009 5: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 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
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to compress EXE file?

Postby Marcelo Via Giglio » Sun Oct 11, 2009 8:44 pm

Hola,

I use this option:

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

maybe this can be a help

regards

Marcelo
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: How to compress EXE file?

Postby Rick Lipkin » 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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: How to compress EXE file?

Postby hua » Mon Oct 12, 2009 1: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
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: How to compress EXE file?

Postby dutch » 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 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
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to compress EXE file?

Postby Marco Turco » Tue Oct 13, 2009 7: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: How to compress EXE file?

Postby mgsoft » Tue Oct 13, 2009 4:49 pm

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

So, I quit using it.
User avatar
mgsoft
 
Posts: 422
Joined: Mon Aug 17, 2009 12:18 pm
Location: España

Re: How to compress EXE file?

Postby nageswaragunupudi » Mon Oct 19, 2009 2: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
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: How to compress EXE file?

Postby fraxzi » 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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: How to compress EXE file?

Postby nageswaragunupudi » Tue Oct 20, 2009 2: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
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: How to compress EXE file?

Postby dutch » Tue Oct 20, 2009 7: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 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
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 54 guests