
#Region **** Directives created by AutoIt3Wrapper_GUI **** I have a source Script where I inserted the following code lines to be able to extract the script source code anytime later if I run it with the /ExtractSourceCode: rar files as I didn't see anyone do it this way. The reasoning for this solution is to show how its done cleanly with. RunWait("unrar.bat " & $sLibrariesPath & " libraries.rar", "", Deletes libraries.rarįileDelete($sLibrariesPath & "libraries.rar") Run the batch script to extract libraries.rar at the path we defined Unpack libraries.rar to the path we definedįileInstall("libraries.rar", $sLibrariesPath, $FC_OVERWRITE) Local Const $sLibrariesPath = & "\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\" Create a local constant string to hold a path to the folder where we will be installing the libraries Thanks to pointing out what I was missing! Also, I would like to add my solution: However, They all show practical examples with files and none with folders (the third link mentions folders but has no examples) so I am at a loss as to how it should be done. NOTE: I already did search the forum for such a solution: Is there a way to achieve such a thing ? (because i'm sure there is). The result I want is to have ESP32-ADX元45.rar extracted to the same location so that I have only a folder with the name ESP32-ADX元45 without any winrar files. The result I'm left with is that ESP32-ADX元45.rar just gets moved to $sLibrariesPath (so it does kinda work).

Local Const $sLibrariesPath = & "\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries"įileInstall("esp-libraries\ESP32-ADX元45.rar", $sLibrariesPath & "\", $FC_OVERWRITE)


zip folder to the desired location but it doesn't extract it! The problem I ran into is that FileInstall simply moves the. rar are the same folder with the same content. I winrared a single folder just for testing. I zipped a single folder just for testing. to dest) so I wend and tried both variants: However, I also learned that I cant just install a folder but there is a workaround that uses 7zip or winrar so that FileInstall extracts the folder to the desired location (e.g.

I know that src must be a literal string and cant be a variable or macro. What i'm trying to achieve is to bundle a few folders within the executable script and from what I've read it can be done with:
