Sign in to follow this  
Followers 0
saurabh

Want to bundle my exe + "folders/files-subfolders" to 1 exe, can AutoIT has some script to do it ?

12 posts in this topic

Hii,

i have an exe and a folder along it.

The name of my exe is lib.exe and i have a folder along it naming lib_data. This folder has files and subfolders.

I want to pack all this to 1 exe, can AutoIT help me in it ? do we have some script..please help

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

FileInstall() & DirCreate() OR look at FileInstallr in my signature.

Edited by guinness

_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

can u elaborate me ?

just for clarity my files are here -

E:\unity\builds\exe test\lib.exe

E:\unity\builds\exe test\lib_Data

lib_Data has so many files and folders

is there any sample script for this ?

will it generate 1 exe only as a result ?

Share this post


Link to post
Share on other sites

FileInstallr (see in my signature) will automatically create the function for you. Run it >> select the folder and it will create the structure.


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

post-35418-0-49057000-1315047695_thumb.j

i downloaded installed, selected the folders, this is the code below generated...then when i tried to convert it to exe then this error came

1. am i going in right direction ? please see attached error image

** Please Note - I Want to bundle my exe + "folders/files-subfolders" to 1 exe , i am not looking for an installer

Func _FileList($sFolder = "FileList")
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data")
EndIf
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Resources", @ScriptDir & "\" & $sFolder & "\lib_Data\Resources", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\output_log.txt", @ScriptDir & "\" & $sFolder & "\lib_Data\output_log.txt", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\sharedassets0.assets", @ScriptDir & "\" & $sFolder & "\lib_Data\sharedassets0.assets", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\mainData", @ScriptDir & "\" & $sFolder & "\lib_Data\mainData", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\Assembly-CSharp-firstpass.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\Assembly-CSharp-firstpass.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\Assembly-UnityScript-firstpass.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\Assembly-UnityScript-firstpass.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\Assembly-UnityScript.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\Assembly-UnityScript.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\Boo.Lang.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\Boo.Lang.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\Mono.Security.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\Mono.Security.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\mscorlib.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\mscorlib.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\System.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\System.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\UnityEngine.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\UnityEngine.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\UnityEngine.dll.mdb", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\UnityEngine.dll.mdb", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\UnityScript.Lang.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\UnityScript.Lang.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\mono.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\mono.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\1.0", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\1.0", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\mconfig", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\mconfig", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\config", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\config", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\browscap.ini", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\browscap.ini", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\1.0\machine.config", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\1.0\machine.config", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\1.0\DefaultWsdlHelpGenerator.aspx", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\1.0\DefaultWsdlHelpGenerator.aspx", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0\Browsers", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\Browsers", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0\machine.config", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\machine.config", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0\settings.map", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\settings.map", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0\web.config", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\web.config", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0\DefaultWsdlHelpGenerator.aspx", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\DefaultWsdlHelpGenerator.aspx", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0\Browsers\Compat.browser", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\Browsers\Compat.browser", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\mconfig\config.xml", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\mconfig\config.xml", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Resources\unity default resources", @ScriptDir & "\" & $sFolder & "\lib_Data\Resources\unity default resources", 1)
Return 1
EndFunc   ;==>_FileList
Edited by saurabh

Share this post


Link to post
Share on other sites

Some folders are getting declared as folders, I will have a look at get back to you.


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

kk, i'l wait for u

Share this post


Link to post
Share on other sites

OK, FIXED. Re-uploaded again. Let me know if you have any problems.


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

Downloaded again, everything worked fine, code is below..now i converted it to exe..exe generated successfully....but when i click the exe nothing happens

Func _FileList($sFolder = "FileList")
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data")
EndIf
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data\Resources") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data\Resources")
EndIf
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data\Managed") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data\Managed")
EndIf
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono")
EndIf
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc")
EndIf
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono")
EndIf
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\1.0") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\1.0")
EndIf
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0")
EndIf
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\mconfig") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\mconfig")
EndIf
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\Browsers") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\Browsers")
EndIf
FileInstall("E:\unity\builds\exe test\scene\lib.exe", @ScriptDir & "\" & $sFolder & "\lib.exe", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\output_log.txt", @ScriptDir & "\" & $sFolder & "\lib_Data\output_log.txt", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\sharedassets0.assets", @ScriptDir & "\" & $sFolder & "\lib_Data\sharedassets0.assets", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\mainData", @ScriptDir & "\" & $sFolder & "\lib_Data\mainData", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\Assembly-CSharp-firstpass.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\Assembly-CSharp-firstpass.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\Assembly-UnityScript-firstpass.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\Assembly-UnityScript-firstpass.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\Assembly-UnityScript.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\Assembly-UnityScript.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\Boo.Lang.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\Boo.Lang.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\Mono.Security.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\Mono.Security.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\mscorlib.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\mscorlib.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\System.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\System.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\UnityEngine.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\UnityEngine.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\UnityEngine.dll.mdb", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\UnityEngine.dll.mdb", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Managed\UnityScript.Lang.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Managed\UnityScript.Lang.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\mono.dll", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\mono.dll", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\config", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\config", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\browscap.ini", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\browscap.ini", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\1.0\machine.config", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\1.0\machine.config", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\1.0\DefaultWsdlHelpGenerator.aspx", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\1.0\DefaultWsdlHelpGenerator.aspx", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0\machine.config", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\machine.config", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0\settings.map", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\settings.map", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0\web.config", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\web.config", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0\DefaultWsdlHelpGenerator.aspx", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\DefaultWsdlHelpGenerator.aspx", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\2.0\Browsers\Compat.browser", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\2.0\Browsers\Compat.browser", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Mono\etc\mono\mconfig\config.xml", @ScriptDir & "\" & $sFolder & "\lib_Data\Mono\etc\mono\mconfig\config.xml", 1)
FileInstall("E:\unity\builds\exe test\scene\lib_Data\Resources\unity default resources", @ScriptDir & "\" & $sFolder & "\lib_Data\Resources\unity default resources", 1)
Return 1
EndFunc   ;==>_FileList

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

You have to call the function _FileList. I would suggest reading about functions in the help file.

Edited by guinness

_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

@guinness

I think there is bug in your FileInstallr:

If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data")
EndIf
If FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data\Resources") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data\Resources")
EndIf

should be (added: Not)

If Not FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data")
EndIf
If Not FileExists(@ScriptDir & "\" & $sFolder & "\lib_Data\Resources") Then
  DirCreate(@ScriptDir & "\" & $sFolder & "\lib_Data\Resources")
EndIf
Edited by Zedna

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

Yeh it should be, such a stupid mistake on my part :mellow: FIXED and re-uploaded.

How to call the Function:

_FileList( "Data") ; This will install to the @ScriptDir under a folder called data.
Edited by guinness

_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0