xris09 Posted June 22, 2020 Posted June 22, 2020 Hello! I have created an .Au3 file that consists of installing several ".exe", but it does not allow me to compile the programs with au3 when I convert the ".au3" into ".exe" .... No matter how much I add the files in " Res add Files ". I am not loading the x32.exe and x64.exe files into the Setup.exe file! I need help please.
Developers Jos Posted June 22, 2020 Developers Posted June 22, 2020 Show me the output from the SciTE console when you run the Compile please. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
xris09 Posted June 22, 2020 Author Posted June 22, 2020 (edited) I cannot attach the files "x32.exe" and "x64.exe" and the size of "setup_Chrome.exe" does not exceed 7 MB! And actually it would have to weigh 125mb ... Edited June 22, 2020 by xris09
Developers Jos Posted June 22, 2020 Developers Posted June 22, 2020 No... I need to see the result of the Compile operation in the bottom part of SciTE : 33 minutes ago, Jos said: Show me the output from the SciTE console when you run the Compile please. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
xris09 Posted June 23, 2020 Author Posted June 23, 2020 (edited) Hi Jos, "Exit" was missing! Anyway, I have several doubts, for example, how to compile folders together with ".exe" files. Also I have seen on the internet that it also compiles files with another method without adding the line "# AutoIt3Wrapper_Res_File_Add =" ... Although I can't find any information Edited June 23, 2020 by xris09
Developers Jos Posted June 23, 2020 Developers Posted June 23, 2020 Those images are black for me... but just copy the whole TEXT and paste it in a CodeBlock. The Buildin FileInstall() function is the way to go for regular File Inclusion like installer. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
xris09 Posted June 30, 2020 Author Posted June 30, 2020 It's okay! I understand that perfectly ... But how could I include in the compilation a folder with several ".exe"? Thank you
Nine Posted June 30, 2020 Posted June 30, 2020 You need to FileInstall each file individually. If you have 10 different files, you will have 10 FileInstall statements. Remember you cannot use FileInstall with a variable as the source. It must be a literal string. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
Zedna Posted June 30, 2020 Posted June 30, 2020 (edited) When you use #AutoIt3Wrapper_Res_File_Add= directive then you have to build (compile) your script form FULL Scite4AutoIt3 editor by F7 (Tools/Build). Edited June 30, 2020 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
xris09 Posted June 30, 2020 Author Posted June 30, 2020 Yes, I understand that "Fileinstall" copies files ... but what I need is to compile the folders with the ".exe" with multiple files ... For example, as you see in the image. "# AutoIt3Wrapper_Res_File_Add =" only serves to include files, not folders .. Or at least I don't know how to do it ----------------------- Any clear example? I need to compile all the data into a single .exe, including folders
Developers Jos Posted June 30, 2020 Developers Posted June 30, 2020 (edited) 47 minutes ago, xris09 said: only serves to include files, not folders . Correct. It requires a definition per file, similar to FileInstall(). Jos Edited June 30, 2020 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Nine Posted June 30, 2020 Posted June 30, 2020 (edited) 3 hours ago, xris09 said: Any clear example? Use FileInstall, it will make your life way easier : #include <FileConstants.au3> ; Create the required folders in TempDir DirCreate (@TempDir & "\Setup") DirCreate (@TempDir & "\Application") ;Install all the required files for a full installation FileInstall ("c:\Folder1\Folder2\Setup\Core.msi", @TempDir & "\Setup\Core.msi", $FC_OVERWRITE) FileInstall ("c:\Folder1\Folder2\Setup\Setup.msi", @TempDir & "\Setup\Setup.msi", $FC_OVERWRITE) FileInstall ("c:\Folder1\Folder2\Applications\x32.exe", @TempDir & "\Application\x32.exe", $FC_OVERWRITE) FileInstall ("c:\Folder1\Folder2\Applications\x64.exe", @TempDir & "\Application\x64.exe", $FC_OVERWRITE) ; Make as many FileInstall as you have files to install ; Start installation ShellExecute (@TempDir & "\Setup\Setup.msi", "", @TempDir) ; do all your installation configuration here ;Clean your temporary folder FileDelete (@TempDir & "\Setup") FileDelete (@TempDir & "\Application") Exit ; not necessary but won't hurt ;) Edited June 30, 2020 by Nine Forgot the DirCreate “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
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