jmclaren7 / windows-setup-helper

GUI for Windows Installer to access tools and select installer automations from WinPE
Other
55 stars 8 forks source link

Error: Subscript used on non-accessible variable in Helper\PEAutoRun\Drivers\main.au3 #2

Closed bezik46 closed 4 days ago

bezik46 commented 5 days ago

Gives an error on boot

Line 10 (File "X:\Helper\PEAutoRun\Drivers\main.au3):
.
.
Error: Subscript used on non-accessible variable
bezik46 commented 5 days ago

With help from AutoIT forums I got it solved

Inserted

If @error Then
    ConsoleWrite("Extended = " & @extended & @CRLF)
    Exit
EndIf

after

$aFiles = _FileListToArrayRec(@ScriptDir, "*.inf", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_NOSORT, $FLTAR_FULLPATH)

No more error (if directory is empty)

jmclaren7 commented 4 days ago

Thanks for pointing this out, fixed in commit dfcb5f4