| View previous topic :: View next topic |
| Author |
Message |
meter
Joined: 12 Jul 2006 Posts: 28
|
Posted: Mon May 12, 2008 11:06 am Post subject: Problems with AHK and new AVG |
|
|
I started having problems compiling AHK scripts this weekend after installing the newest (8.0) version of AVG Anti-Virus Free Edition. The problem is similar to the one described here.
The problem went away when I turned off AVG's realtime scanning ... then for good when I replaced AVG with Avira AntiVir . Still, I like AVG's updating system better, and the tray icon is so much nicer to look at.
Anyhoo, I wanted to ask if any other users were having similar experiences with the latest AVG ... and for a heads up if AVG gets around to fixing it.
Also, does anyone know why AHK seems more prone than average to these kinds of false-positive issues? _________________ -Meter |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Mon May 12, 2008 11:24 am Post subject: |
|
|
This is not AutoHotkey itself, but the fact that it uses upx (the Ultimate Packer for eXecutables) to compress the resulting executable, this upx-compression triggers the anti-virus programs. If you rename the upx.exe file in your AutoHotkey folder to something else, you get a non-compressed exe, on which the anti-virus programs should not trigger anymore.
You can test this by creating a upx compressed ahk-script, and a non-compressed, and upload them both to something like virustotal. |
|
| Back to top |
|
 |
meter
Joined: 12 Jul 2006 Posts: 28
|
Posted: Mon May 12, 2008 12:37 pm Post subject: |
|
|
Thanks for the info. For me personally having compressed executables isn't a critical issue, so I think I will leave compression disabled by default so it doesn't create problems for me or anyone using an exe I created.
Which brings us to: is there a command line switch or something to disable compression when compiling ... if not, should there/can there be? _________________ -Meter |
|
| Back to top |
|
 |
Oberon
Joined: 18 Feb 2008 Posts: 458
|
Posted: Mon May 12, 2008 12:50 pm Post subject: |
|
|
| meter wrote: | | Which brings us to: is there a command line switch or something to disable compression when compiling ... if not, should there/can there be? | How is mentioned in the documentation section titled Convert a Script to an EXE (ahk2exe). |
|
| Back to top |
|
 |
meter
Joined: 12 Jul 2006 Posts: 28
|
Posted: Mon May 12, 2008 5:55 pm Post subject: |
|
|
Oberon, thanks for the tip. The documentation you point to mentions the same technique that n-l-i-d mentioned above. What I was suggesting is that it would be nice to make the compression fully turn-off-able at the command line or via the GUI. There's already an option in the GUI for level of compression. From a UI point of view, adding another option called "off" to the list suggests itself. I suppose this discussion should be moved to the "Wish List" section. _________________ -Meter |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2472 Location: Australia, Qld
|
Posted: Mon May 12, 2008 10:10 pm Post subject: |
|
|
I get "Error opening the destination file" every time I try to compile, even if I rename upx.exe, unless I disable AVG. I get no messages from AVG, and it still says "Threats detected and blocked: 0".  |
|
| Back to top |
|
 |
meter
Joined: 12 Jul 2006 Posts: 28
|
Posted: Tue May 13, 2008 6:05 am Post subject: |
|
|
Lexicos,
If I remember correctly, I had to kill some AHK and/or upx tasks using the Task Manager after trying to compile with AVG active. For some reason they were left running after the unsuccessful compile attempts.
Also, how are you disabling AVG? I disabled the realtime scanner from within the main GUI interface. _________________ -Meter |
|
| Back to top |
|
 |
Zippo() Guest
|
Posted: Tue May 13, 2008 6:21 am Post subject: |
|
|
| Lexikos wrote: | | I get "Error opening the destination file" every time I try to compile |
I had that problem on Vista. I fixed it by going into the compiler directory, right-clicking on ahk2exe and selecting the "Run As Administrator" option.
PITA having to deal with UAC dialog every time I want to compile though :/ |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2472 Location: Australia, Qld
|
Posted: Tue May 13, 2008 6:49 am Post subject: |
|
|
Nope.
| Quote: | | If I remember correctly, I had to kill some AHK and/or upx tasks using the Task Manager after trying to compile with AVG active. For some reason they were left running after the unsuccessful compile attempts. | I didn't; there weren't any.
| Quote: | | Also, how are you disabling AVG? | I disabled the Resident Shield via the AVG User Interface.
| Zippo() wrote: | | I had that problem on Vista. | I probably should've mentioned I'm on Vista.
| Quote: | | I fixed it by going into the compiler directory, right-clicking on ahk2exe and selecting the "Run As Administrator" option. | I had been trying to compile through the context menu in Explorer, as I've done in the past. It also fails if I try to compile from the command-line, even running it as an administrator. Apparently it works if I launch the Ahk2Exe GUI normally...
On the plus side, upgrading to AVG 8.0 seems to have fixed a problem I had with automatic updates stalling. |
|
| Back to top |
|
 |
|