darklight_tr wrote:
I'm having an issue with the latest v0.9.0.49 release where it will copy the Ahk2Exe.exe, AutoHotkeySC.bin and Upx.exe files to the directory containing the script ...
I've been having the same issue, but no idea which version I'm using. I think I must've deleted the script's temporary folder (along with everything else in %TEMP%) at some point, and this version is incapable of recreating it. This is the problem section:
Code:
CheckPortableApp:
IfExist , %Global_Defaults_Ini%
{
Portable_App := 1
Defaults_Ini := A_ScriptDir . "\Defaults.ini"
Language_Ini := A_ScriptDir . "\Language.ini"
SetWorkingDir , %A_ScriptDir%
SplitPath, A_ScriptDir , , Used_AHK_Dir
} Else {
Defaults_Ini := A_AppData . "\Compile_AHK\Defaults.ini"
Language_Ini := A_AppData . "\Compile_AHK\Language.ini"
SetWorkingDir , %A_TEMP%\AutoHotkey\Compiler
Used_AHK_Dir = %A_TEMP%\AutoHotkey
}
IfNotExist , %A_WorkingDir%
FileCreateDir , %A_WorkingDir%
Return
This simply won't work. If the directory doesn't exist, SetWorkingDir will fail and A_WorkingDir will remain unchanged. However, it appears to be fixed in the current version:
Code:
FileCreateDir , %A_TEMP%\AutoHotkey\Compiler
SetWorkingDir , %A_TEMP%\AutoHotkey\Compiler