Page 1 of 1

Compiling with UPX and BinMod.exe

Posted: 08 Dec 2022, 06:00
by daywalker
Hello,

when compiling my script

Code: Select all

;@Ahk2Exe-PostExec "BinMod.exe" "%A_WorkFileName%" "11.UPX." "1.UPX!.", 2

msgbox Hello World
it results in an AHK2Exe-error:
image.png
image.png (10.18 KiB) Viewed 479 times
PostExec "Example 2" from : https://www.autohotkey.com/docs/misc/Ahk2ExeDirectives.htm#PostExec
PostExec "Example 5" from https://github.com/AutoHotkey/Ahk2Exe/blob/master/BinMod.ahk

My Setup:
- BinMod.exe was created as 32 bit Unicode .exe and copied to AHK2Exe folder
- UPX.exe 4.0.1 win32 copied to AHK2Exe folder
- Compiler Options:
* U32 Unicode
* Compress with UPX
- AHK Version 1.1.36.0.1 and 1.1.36.0.2

Does someone have a hint, what goes wrong?

Re: Compiling with UPX and BinMod.exe  Topic is solved

Posted: 08 Dec 2022, 19:02
by TAC109
The error message shown would indicate that Ahk2Exe could not find BinMod.exe, so please double check that BinMod.exe is actually in the Compiler directory. A simple method is to go to 'Help' -> 'Check for Updates' in the Ahk2Exe GUI and update BinMod.exe from there.

Cheers