This is the process:
1) build/compile AHK_H
2) compress AutoHotkey.exe with upx.exe (part of the build step in Visual Studio, or do this separately)
3) compile myscript.ahk using AutoHotkey.exe => myscript.exe
Running a script works fine with the compressed AutoHotkey.exe e.g.
Code: Select all
AutoHotkey.exe myscript.ahk
If we compress after compiling the script it's fine:
1) build/compile AHK_H
2) compile myscript.ahk using AutoHotkey.exe => myscript.exe
3) compress myscript.exe with upx
Is there a layman explanation for why I shouldn't compress AutoHotkey.exe before using it to compile scripts? I find it a bit unusual since the Visual Studio project specifically has a macro to compress AutoHotkey.exe in the build process. Perhaps it's an issue with upx?