Compiling with UPX and BinMod.exe Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
daywalker
Posts: 32
Joined: 18 Jun 2019, 01:37

Compiling with UPX and BinMod.exe

Post by daywalker » 08 Dec 2022, 06:00

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 433 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?

TAC109
Posts: 1099
Joined: 02 Oct 2013, 19:41
Location: New Zealand

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

Post by TAC109 » 08 Dec 2022, 19:02

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
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

Post Reply

Return to “Ask for Help (v1)”