I haven' seen this before. What does it mean and how to rectify the situation? Thanks.Warning: "C:\Program Files\AutoHotkey\Compiler\mpress.exe" not found.
Error message compiling AHK 1.1.33.00 Topic is solved
- PuzzledGreatly
- Posts: 1303
- Joined: 29 Sep 2013, 22:18
Error message compiling AHK 1.1.33.00
I'm seeing an error message when I compile an exe file using the new version:
Re: Error message compiling AHK 1.1.33.00
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
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
Re: Error message compiling AHK 1.1.33.00
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.
Anyway, if you want to use them, you need to get them separately.
Re: Error message compiling AHK 1.1.33.00
@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.
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
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
- PuzzledGreatly
- Posts: 1303
- Joined: 29 Sep 2013, 22:18
Re: Error message compiling AHK 1.1.33.00
Thanks, TAC109. I've been using a function like this for ages to compile scripts directly from notepad++:
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?
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"
}
Re: Error message compiling AHK 1.1.33.00 Topic is solved
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.
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
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
- PuzzledGreatly
- Posts: 1303
- Joined: 29 Sep 2013, 22:18
Re: Error message compiling AHK 1.1.33.00
Thanks, I reset the Gui. The new version must come with different defaults.
Re: Error message compiling AHK 1.1.33.00
Yes fully agree. An issue shall be opened because it was very misleading.
The workaround - changing the setting in the GUI worked.
The workaround - changing the setting in the GUI worked.
Re: Error message compiling AHK 1.1.33.00
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.
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
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
Re: Error message compiling AHK 1.1.33.00
You guys can also download mpress and extract the exe to the ahk compiler folder.
Last edited by Rafaews on 09 Dec 2020, 20:12, edited 1 time in total.
Re: Error message compiling AHK 1.1.33.00
The download links to MPRESS and UPX are in the official AutoHotkey documentation here under compression.
Cheers
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
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
Who is online
Users browsing this forum: No registered users and 137 guests