saurabh Posted September 3, 2011 Share Posted September 3, 2011 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 Link to comment Share on other sites More sharing options...
guinness Posted September 3, 2011 Share Posted September 3, 2011 (edited) FileInstall() & DirCreate() OR look at FileInstallr in my signature. Edited September 3, 2011 by guinness UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
saurabh Posted September 3, 2011 Author Share Posted September 3, 2011 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 ? Link to comment Share on other sites More sharing options...
guinness Posted September 3, 2011 Share Posted September 3, 2011 FileInstallr (see in my signature) will automatically create the function for you. Run it >> select the folder and it will create the structure. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
saurabh Posted September 3, 2011 Author Share Posted September 3, 2011 (edited) 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 expandcollapse popupFunc _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 September 3, 2011 by saurabh Link to comment Share on other sites More sharing options...
guinness Posted September 3, 2011 Share Posted September 3, 2011 Some folders are getting declared as folders, I will have a look at get back to you. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
saurabh Posted September 3, 2011 Author Share Posted September 3, 2011 kk, i'l wait for u Link to comment Share on other sites More sharing options...
guinness Posted September 3, 2011 Share Posted September 3, 2011 OK, FIXED. Re-uploaded again. Let me know if you have any problems. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
saurabh Posted September 3, 2011 Author Share Posted September 3, 2011 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 expandcollapse popupFunc _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 Link to comment Share on other sites More sharing options...
guinness Posted September 3, 2011 Share Posted September 3, 2011 (edited) You have to call the function _FileList. I would suggest reading about functions in the help file. Edited September 3, 2011 by guinness UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
Zedna Posted September 3, 2011 Share Posted September 3, 2011 (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 September 3, 2011 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
guinness Posted September 3, 2011 Share Posted September 3, 2011 (edited) Yeh it should be, such a stupid mistake on my part FIXED and re-uploaded. How to call the Function:_FileList( "Data") ; This will install to the @ScriptDir under a folder called data. Edited September 3, 2011 by guinness UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now