When using quotes around the first parameter:
Code: Select all
---------------------------
Test21v2.ahk
---------------------------
Error: Failed
Line#
001: SetWorkingDir(A_ScriptDir)
002: MsgBox('Test21')
002: MsgBox('test2')
---> 006: fileinstall('test22V2.ahk', 'test22V2.ahk', 1)
007: Exit
The current thread will exit.
---------------------------
OK
---------------------------
Code: Select all
---------------------------
Test21v2.ahk
---------------------------
Warning: This variable appears to never be assigned a value.
Specifically: global test22V2
Line#
001: SetWorkingDir(A_ScriptDir)
002: MsgBox('Test21')
002: MsgBox('test2')
---> 006: fileinstall(test22V2.ahk, 'test22V2.ahk', 1)
007: Exit
For more details, read the documentation for #Warn.
---------------------------
OK
---------------------------
Code: Select all
---------------------------
Test21v2.ahk
---------------------------
Error: This variable has not been assigned a value.
Specifically: global test22V2
Line#
001: SetWorkingDir(A_ScriptDir)
002: MsgBox('Test21')
002: MsgBox('test2')
---> 006: fileinstall(test22V2.ahk, 'test22V2.ahk', 1)
007: Exit
Try to continue anyway?
---------------------------
Yes No
---------------------------