Jump to content

Compiling and Includes


Recommended Posts

I have a question about compiling scripts and using includes.

If I have a script that has included au3 files and I compile it, will it compile those included files into the exe or will they still need to exist when running the script as an executable?

i.e I have script.au3 and include.au3 is included in it. I compile script.au3 to script.exe. When I run it, does it still require include.au3 to exist, or has that become part of script.exe?

Link to comment
Share on other sites

When compiling all the files needed will be imported into the final executable.

Those files are from #include <...> and FileInstall()

When you compile and the needed files do NOT exist, the compilation will fail.

And you will see an error message.

Link to comment
Share on other sites

I have a question about compiling scripts and using includes.

If I have a script that has included au3 files and I compile it, will it compile those included files into the exe or will they still need to exist when running the script as an executable?

i.e I have script.au3 and include.au3 is included in it.  I compile script.au3 to script.exe.  When I run it, does it still require include.au3 to exist, or has that become part of script.exe?

<{POST_SNAPBACK}>

Yea the compiled executables will run anywhere. Doesn't even required autoit to be installed on the computer.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...