Error message compiling AHK 1.1.33.00 Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
PuzzledGreatly
Posts: 1303
Joined: 29 Sep 2013, 22:18

Error message compiling AHK 1.1.33.00

09 Jul 2020, 01:41

I'm seeing an error message when I compile an exe file using the new version:
Warning: "C:\Program Files\AutoHotkey\Compiler\mpress.exe" not found.
I haven' seen this before. What does it mean and how to rectify the situation? Thanks.
Rohwedder
Posts: 7735
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Error message compiling AHK 1.1.33.00

09 Jul 2020, 03:24

Hallo,
here: Warning: "C:\Program Files\AutoHotkey\Compiler\upx.exe" not found.

I've searched entire C:\
Couldn't find neither upx.exe nor PuzzledGreatly's mpress.exe

Problem of https://www.autohotkey.com/boards/viewtopic.php?f=14&t=78361
is missing autohotkey.exe
gregster
Posts: 9096
Joined: 30 Sep 2013, 06:48

Re: Error message compiling AHK 1.1.33.00

09 Jul 2020, 04:22

I think they have changed error handling of the compiler in general. Afaik, in older versions, it was just ignored, if the third-party compressors (not included with AHK) couldn't be found - but I could be wrong.

Anyway, if you want to use them, you need to get them separately.
TAC109
Posts: 1128
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Error message compiling AHK 1.1.33.00

09 Jul 2020, 04:49

@PuzzledGreatly
When compiling, if you select one of the compression options and the appropriate compressor .exe is not in the Compiler directory you will see this warning message. Either don’t select a compression option or install the appropriate compression .exe in the compiler directory. See the compression section of the documentation for more details.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
User avatar
PuzzledGreatly
Posts: 1303
Joined: 29 Sep 2013, 22:18

Re: Error message compiling AHK 1.1.33.00

09 Jul 2020, 16:42

Thanks, TAC109. I've been using a function like this for ages to compile scripts directly from notepad++:

Code: Select all

Compile(itm)
{
	Global ZOD
	runwait, Ahk2Exe.exe /in "%itm%.ahk" /icon "%ZOD%\icons\system\%itm%.ico" /bin "C:\Program Files\AutoHotKey\Compiler\Unicode 64-bit.bin"
}
No mention of compression. It seems the default for the new compile is to try to compress even when the instruction to do so isn't there?
TAC109
Posts: 1128
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Error message compiling AHK 1.1.33.00  Topic is solved

09 Jul 2020, 17:42

If compression is not specified in the command line, it defaults to whatever was last specified in the GUI.

So if you bring up the GUI ('Convert ahk to exe') and set the compression to 'none', then close the GUI, you should be all set Into the future.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
User avatar
PuzzledGreatly
Posts: 1303
Joined: 29 Sep 2013, 22:18

Re: Error message compiling AHK 1.1.33.00

09 Jul 2020, 20:29

Thanks, I reset the Gui. The new version must come with different defaults.
User avatar
tdalon
Posts: 44
Joined: 21 Apr 2017, 07:19
Location: Germany
Contact:

Re: Error message compiling AHK 1.1.33.00

28 Oct 2020, 16:50

Yes fully agree. An issue shall be opened because it was very misleading.
The workaround - changing the setting in the GUI worked.
TAC109
Posts: 1128
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Error message compiling AHK 1.1.33.00

28 Oct 2020, 18:04

The warning is generated in this version of Ahk2Exe because an inconsistency was detected - the user had selected (implicitly or explicitly) that the .exe was to be compressed, but the compressor (MPRESS or UPX) had not been set up by the user. (Note that it is a warning; the user can continue by pressing 'OK' and generate the .exe without compression.)

Previous versions of Ahk2Exe would simply ignore this inconsistency.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Rafaews
Posts: 25
Joined: 16 Mar 2018, 21:19

Re: Error message compiling AHK 1.1.33.00

09 Dec 2020, 05:22

You guys can also download mpress and extract the exe to the ahk compiler folder.
image.png
image.png (12.85 KiB) Viewed 1505 times
Last edited by Rafaews on 09 Dec 2020, 20:12, edited 1 time in total.
TAC109
Posts: 1128
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Error message compiling AHK 1.1.33.00

09 Dec 2020, 15:41

The download links to MPRESS and UPX are in the official AutoHotkey documentation here under compression.

Cheers
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 137 guests