Sign in to follow this  
Followers 0
mud409

make compiled exe smaller

18 posts in this topic

#1 ·  Posted (edited)

I'm trying to trim the size of my script down... I'm about to rewrite and use alot of shared functions which will bring the size down. I stripped the #include's already, so I'm not including a bunch of shit I'm not using. Is there anything else I can do to decrease the size of the final exe? Is there any other compilers out there that'll give me more control over the compile?

Edited by mud409

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I just tested a new script of a simple send("n") and compiled it, it's 226kb my full script is 228kb! please don't tell me this is as small as I can make this...

Edited by mud409

Share this post


Link to post
Share on other sites

Okay I won't tell you then...

I assume you already set the appropriate compression options in the compiler.

Share this post


Link to post
Share on other sites

I tried the low medium and high ones they only made like 1k difference :)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

ohhh no, this looks interesting...

thanks for the link

Edited by mud409

Share this post


Link to post
Share on other sites

smallest I can get it with dropping back is 200k... kjactive doesn't seem to work properly... I load the au3 and it just displays a check box checked with an empty title, it wont do anything...

Share this post


Link to post
Share on other sites

Have you googled for Executable Compressors?

Share this post


Link to post
Share on other sites

hrmm didn't think of that one, I'll check it out. thanks

Share this post


Link to post
Share on other sites

it appears autoit exe's already are packed...

Share this post


Link to post
Share on other sites

I think you should download the latest UPX version

Share this post


Link to post
Share on other sites

it appears autoit exe's already are packed...

They are. here's an experiment for you. Create a new au3 script, place a semi-colon on the first line and leave the rest blank. Then compile it and look at the size.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Yes but you can toggle to pack with UPX or not. Or since UPX is free it can easily be unpacked via a command line if you just go download UPX.

Share this post


Link to post
Share on other sites

Yes but you can toggle to pack with UPX or not. Or since UPX is free it can easily be unpacked via a command line if you just go download UPX.

That's correct but the OP is trying to reduce the size. Unpacking will increase ir. There is also a good front end available for UPX to make the processe easier. I have not checked for a few months now but it runs in my mind that AutoIt is already using the latest version.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

There are many better compressors/packers out there. Not only is compressing/packing going to make your executable smaller it will make it harder to reverse engineer. I see the point of making an executable smaller but I fail to see the point in stressing over a few kbs. There is seriously no point as autoit compiled executables are all relatively small compared to many others.

Share this post


Link to post
Share on other sites

I just tested a new script of a simple send("n") and compiled it, it's 226kb my full script is 228kb! please don't tell me this is as small as I can make this...

Why does this need to be so small, is it meant for an Atari 800?

Share this post


Link to post
Share on other sites

Why does this need to be so small, is it meant for an Atari 800?

yeah, that would be interesting to know ...


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0