AutoHotkey Community

It is currently May 27th, 2012, 1:15 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next

Should UPX be removed from Autohotkey install?
Yes, remove UPX from Autohotkey Installer
No, but make UPX compression optional in AHK2EXE (with warning)
No, UPX should be kept in by default, leave it up to the user
You may select 1 option

View results
Author Message
PostPosted: January 10th, 2010, 5:49 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
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/viewtop ... 672#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/viewtop ... 030#404030

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


Last edited by SoLong&Thx4AllTheFish on December 3rd, 2010, 10:58 am, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 10th, 2010, 5:59 pm 
Offline

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
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.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 10th, 2010, 7:52 pm 
Offline

Joined: October 3rd, 2008, 9:42 pm
Posts: 9
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2010, 9:29 am 
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...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2010, 9:10 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
the problem is upx is a common compression to use with viruses it is guilty by association

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 12th, 2010, 4:38 am 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1713
Location: Somewhere near you
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 Image)

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 12th, 2010, 7:20 am 
Offline

Joined: July 15th, 2007, 1:43 am
Posts: 1320
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 Image)


UPX is the chosen compression software of AutoHotkey. [More..]

_________________
Religion is false. >_>


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 12th, 2010, 1:06 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
I voted "make UPX compression optional" since I think it'll help solve a common problem, but TBH I don't use compiled scripts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 12th, 2010, 5:06 pm 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1713
Location: Somewhere near you
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?

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 12th, 2010, 5:19 pm 
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...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 23rd, 2010, 12:04 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 26th, 2010, 9:15 am 
Offline
User avatar

Joined: October 31st, 2008, 9:39 am
Posts: 641
Location: France
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 11:54 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
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.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 7:29 am 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
For larger exe files you can always ZIP them too, plenty of portable apps are distributed that way.

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 4:52 pm 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1713
Location: Somewhere near you
Could I re-compress an UPX compressed file?
It's like having a zip file inside a zip file.

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 30 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group