AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Should UPX be removed from AHK install? (mpress for ahk_l)
Goto page 1, 2, 3  Next
 
Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  

Should UPX be removed from Autohotkey install?
Yes, remove UPX from Autohotkey Installer
18%
 18%  [ 10 ]
No, but make UPX compression optional in AHK2EXE (with warning)
60%
 60%  [ 32 ]
No, UPX should be kept in by default, leave it up to the user
20%
 20%  [ 11 ]
Total Votes : 53

Author Message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Sun Jan 10, 2010 4:49 pm    Post subject: Should UPX be removed from AHK install? (mpress for ahk_l) Reply with quote

See http://www.autohotkey.com/forum/viewtopic.php?t=53129 for a short intro. UPX can cause compiled AHK scripts to be flagged as a virus/trojan

Should the UPX be removed from the Autohotkey installer, be optional (with a warning about false positives), or be kept in (so users have to remove UPX themselves)

Edit: feel free to motivate your choice Wink

Edit2 Oct 2010: upx has been replaced with http://www.matcode.com/mpress.htm (mpress.exe in compiler folder) for ahk_l, see ahk_l discussion thread here http://www.autohotkey.com/forum/viewtopic.php?p=379672#379672

Edit3 Dec 2010:
Lexikos wrote:
See v1.0.90:
Quote:
Other Changes

In an attempt to solve the anti-virus false positives, I've removed mpress.exe from the installer and have not compressed the other executables. To compress compiled scripts (which also adds a degree of protection), you may need to download MPRESS and place it in the Compiler directory. If you've installed a previous version of AutoHotkey_L, you probably already have mpress.exe.

(This was referring to false positives for the installer and its contents, not specifically compiled scripts.)
Source: http://www.autohotkey.com/forum/viewtopic.php?p=404030#404030

_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum


Last edited by SoLong&Thx4AllTheFish on Fri Dec 03, 2010 9:58 am; edited 2 times in total
Back to top
View user's profile Send private message
tidbit



Joined: 09 Mar 2008
Posts: 1807
Location: Minnesota, USA

PostPosted: Sun Jan 10, 2010 4:59 pm    Post subject: Reply with quote

in the installer for AHK, there is that check list of things you want to include. UPX could be in that list.

for non-installers, it could be included, but renamed as something else so it's 'off' by default. if people want it on, they can just rename the file.
_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
Even monkeys fall from trees. - Japanese proverb
Back to top
View user's profile Send private message
mouser



Joined: 03 Oct 2008
Posts: 9

PostPosted: Sun Jan 10, 2010 6:52 pm    Post subject: Reply with quote

I don't see any good reason not to install it with autohotkey.

but i think the important thing is to not have it used by default when compiling, and to warn the user seriously about the repercussions if they choose to activate it.
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Jan 11, 2010 8:29 am    Post subject: Reply with quote

The real solution is to try & get UPX delisted as being bad...we report false positives on AutoHotkey but we should report UPX itself as false positive...

Also AutoHotkey Server time is 5 mins off (behind)...it's 3:33am EST now...
Back to top
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Mon Jan 11, 2010 8:10 pm    Post subject: Reply with quote

the problem is upx is a common compression to use with viruses it is guilty by association
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
tomoe_uehara



Joined: 05 Sep 2009
Posts: 1591
Location: Somewhere near you

PostPosted: Tue Jan 12, 2010 3:38 am    Post subject: UPX... Should we leave it behind? Reply with quote

First of all, what is UPX, and why should I use it when compiling an ahk to exe?
Could UPX give me a better compression ratio, or speeding up my compiled script, or prevent disassembling, or what?
(I'm a newbie here, hehe )

_________________

The quick onyx goblin jumps over the lazy dwarf
Back to top
View user's profile Send private message
trik



Joined: 15 Jul 2007
Posts: 1320

PostPosted: Tue Jan 12, 2010 6:20 am    Post subject: Re: UPX... Should we leave it behind? Reply with quote

tomoe_uehara wrote:
First of all, what is UPX, and why should I use it when compiling an ahk to exe?
Could UPX give me a better compression ratio, or speeding up my compiled script, or prevent disassembling, or what?
(I'm a newbie here, hehe )


UPX is the chosen compression software of AutoHotkey. [More..]
_________________
Religion is false. >_>
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7295
Location: Australia

PostPosted: Tue Jan 12, 2010 12:06 pm    Post subject: Re: UPX... Should we leave it behind? Reply with quote

I voted "make UPX compression optional" since I think it'll help solve a common problem, but TBH I don't use compiled scripts.
Back to top
View user's profile Send private message Visit poster's website
tomoe_uehara



Joined: 05 Sep 2009
Posts: 1591
Location: Somewhere near you

PostPosted: Tue Jan 12, 2010 4:06 pm    Post subject: Reply with quote

Thank you trik for pointing that out =)
UPX stands for "Ultimate Packer for eXecutables".
Are there any better packer we could use to convert ahk to exe?

_________________

The quick onyx goblin jumps over the lazy dwarf
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Jan 12, 2010 4:19 pm    Post subject: Reply with quote

tomoe_uehara wrote:
Are there any better packer we could use...
    (English note: "Are there" should be "Is there" {or "Are there any better packers" to make it plural})
...No, UPX is the best packer I know of, it's just really annoying that it gets flagged as a virus soo much...

tomoe_uehara wrote:
...to convert ahk to exe?

...UPX doesn't turn ahk into an exe, ahk2exe does that, then UPX makes the exe smaller...UPX has nothing to do with AutoHotkey, other than we use it to make exe's smaller...UPX can be used to make any exe smaller...

I vote for a checkbox & maybe even turning UPX off by default, but I don't support removing it...if we do that, then the Anti-Virus Companies, with their false postives, have won...
Back to top
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Sat Jan 23, 2010 11:04 am    Post subject: Reply with quote

One question could be: is UPX still needed, in days were a 10MB install file is said to be "small"?
I love small but efficient software, but UPX is only a kind of "cheat", and I was never convinced of its usefulness, particularly for software like AHK which isn't that big.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Zaelia



Joined: 31 Oct 2008
Posts: 604
Location: France

PostPosted: Tue Jan 26, 2010 8:15 am    Post subject: Reply with quote

I think UPX must be an option...

http://www.autohotkey.com/forum/viewtopic.php?t=22975

Code:

name.ext = size memory

SCRIPT1.AHK = 2 KB 1716K
script1.exe = 412 KB (noUPX) 1240K
script1.exe = 202 KB 1656K
with embedded ressource (843KB) :
script1.exe = 1220 KB (noUPX) 1240K
script1.exe = 214 KB 2508K

SCRIPT2.AHK = 113 KB 5472K
script2.exe = 429 KB (noUPX) 4620K
script2.exe = 219 KB 4936K
with embedded ressource (5270KB) :
script2.exe = 5836 KB (noUPX) 4620K
script2.exe = 3034 KB 10324K


It seems that UPX saves disk space but will use more memory?
Back to top
View user's profile Send private message Send e-mail
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Jan 29, 2010 10:54 pm    Post subject: Reply with quote

I have to agree with PhiLho here. the internet is such that 10MB files are not a /huge/ deal to send anymore, though on my crappy cell phone internet in Germany, it would take me a few minutes for 10MB.

since typical AHK scripts (without fancy stuff embedded) are less than 0.5MB without UPX, I would vote for removing it entirely from the install. I think it will help dissociate AHK from the stigma UPX has.
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Sat Jan 30, 2010 6:29 am    Post subject: Reply with quote

For larger exe files you can always ZIP them too, plenty of portable apps are distributed that way.
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
tomoe_uehara



Joined: 05 Sep 2009
Posts: 1591
Location: Somewhere near you

PostPosted: Sat Jan 30, 2010 3:52 pm    Post subject: Reply with quote

Could I re-compress an UPX compressed file?
It's like having a zip file inside a zip file.

_________________

The quick onyx goblin jumps over the lazy dwarf
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group