Jump to content

Recommended Posts

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.

 

 

1111111111.png

22222222222222222222.png

Link to post
Share on other sites
  • Developers

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.
  :)

Link to post
Share on other sites

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

image.png

image.png

image.png

Edited by xris09
Link to post
Share on other sites
  • Developers

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.
  :)

Link to post
Share on other sites

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.

Link to post
Share on other sites

 

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

 

11.png

Link to post
Share on other sites
  • Developers
47 minutes ago, xris09 said:

only serves to include files, not folders .

Correct. It requires a definition per file, similar to FileInstall().

Jos

Edited 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.
  :)

Link to post
Share on other sites
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 by Nine
Forgot the DirCreate
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...