mslonik wrote: ↑05 May 2021, 15:48
Dear Forum,
In
this article I miss the following information:
- What is the /bin parameter? What is it needed for? Where to find it? Is it mandatory? What are the consequences of choosing particular file?
The .bin files contain a special version the AutoHotkey interpreter, a copy of which is used in conjunction with the script and any other resources needed to create the final compiled executable. They correspond to the versions of the AutoHotkey executables (ANSI, Unicode 32-bit, and Unicode 64-bit) plus a default version corresponding to the default version of AutoHotkey that was installed.
[*]What is the relationship between the /bin parameter and the /ahk parameter? E.g. what are the consequences if /bin parameter is missing and /ahk is present?
The /ahk parameter is provided for exceptional purposes and is not normally used. Ahk2Exe will be able to find the relevant copy of AutoHotkey.exe to use in a normal installation.
[*]Is the /ahk parameter mandatory? Can it point to any of the /bin executables?
The .bin files are not normal executables and /ahk should not be used in this way.
[*] More general question: which parameters are mandatory and which are not?
All parameters which are shown in the documentation as having defaults are optional. In other words all are optional except the /in parameter which is mandatory unless the /GUI parameter is used.
As I understood after try and error attempts and trying Gui version of the Ahk2Exe:
- /bin is the name for AutoHotkey executable (.exe) and it is one of the following: AutoHotkeyA32.exe, AutoHotkeyU32.exe, AutoHotkeyU64.exe,
The .bin files have an extension of '.bin' and are in the Compiler directory. The files you quoted are in the AutoHotkey directory. (Check out the directory structure of a normal AutoHotkey installation, usually in C:\Program Files\AutoHotkey.)
[*] the /bin files are wrapped into output executable by Ahk2Exe in order to enable auto execution of the compiled script,
Correct
[*] if /bin parameter isn't specified, then default one executable (.exe) is wrapped into output executable; another words this parameter isn't mandatory,
Not really see above.
[*] /ahk parameter isn't mandatory too; it's used in order to specify the default /bin.
Yes, No, see above.
I hope this clarifies matters for you.