hello and welcome to AutoIt and the forum,
this is how i did it: using 7zip (freeware and open source) i distribute a group of auxiliary files with my script.
in the script folder, i put files 7z.exe & 7z.dll
i put all auxiliary files in a subfolder named AuxFiles
before compile, i create a 7zip archive, like this: (DOS command)
7z.exe a AuxFiles.7z AuxFiles*
and this is the part of the script:
; declare variables
Global $sTempPath=@TempDir&'\MyScript_files\'
Global $sTempPath_program=$sTempPath&'program\'
; embed/extract the 7zip program files and the archive to be extracted
DirCreate($sTempPath)
FileInstall('AuxFiles.7z',$sTempPath,1)
FileInstall('7z.exe',$sTempPath,1)
FileInstall('7z.dll',$sTempPath,1)
; extract the archive
DirCreate($sTempPath_program)
RunWait($sTempPath&'7z.exe x AuxFiles.7z -o"'&$sTempPath_program&'" -aoa',$sTempPath,@SW_HIDE)
for better performance you can eliminate the 7z.exe and use the 7z.dll directly, use the 7zip UDF here:
'?do=embed' frameborder='0' data-embedContent>>
also there is a pure AutoIt archiving instead of 7zip, here:
'?do=embed' frameborder='0' data-embedContent>>
try it out, let us know if you need further guidance.