hI
At my formal work, i once created a self-recompiling exe with AHK (to make it possible to change code in the exe, that then recompiles itself).
That worked fine.
I didn't see this approach on the AHK forum before, so maybe this is an usefull tip forU.
Unfortunately, I lost the code, so i've to rewrite it again for a simular pupose - to make it possible dynamically change the items in the 'menu.exe' I made. No external stuff needed then...
I used ahktoexe and exetoahk in the program as #include (cmd line)

.