Sign in to follow this  
Followers 0
Guest DrRaven

Compiling EXE's, DLL's into a script exe file

4 posts in this topic

Hi,

I have used AutoIT a few times and I am by no means an expert. I am now trying to construct a tool box that I will use to launch/exectue some of favorite simple tools (exe's) and some of my most used references (chm's).

I can easily write a script to launch such files from the push of a button..and of course I can compile the script as an executable. The problem is that the files I am launching must be maintained in the same directory structure as what is coded in the script.

Is there any way, when generating an executable, to compile these files (exes, dlls, chms, etc..etc) into the final executable, creating a single distribution file??

Any help appreciated...

TIA.....

Brant

Share this post


Link to post
Share on other sites



Welcome to the forums!

I think you're after the FileInstall() functionality. I don't believe that it works with folders directly, so you would need to use multiple FileInstall() calls and possibly some DirCreate() calls to achieve the correct structure on an end-user's system, but the upside to this way is that you know exactly what files your compiled script will install and what it will remove.

Share this post


Link to post
Share on other sites

Why don't you zip up your files (preserving the folder paths) into one file, FileInstall it, and then unzip it at the other end, with all the paths intact?

Share this post


Link to post
Share on other sites

Why don't you zip up your files (preserving the folder paths) into one file, FileInstall it, and then unzip it at the other end, with all the paths intact?

Then you'd have to either package an unzipper or count on the destination machine to already have one, and FileInstalling the unzipper and a ZIP file might make the AutoIt file larger than necessary. I'm not sure how UPX compression compares to ZIP compression though, and it would depend on how well the target files compress.

Good idea.


My UDFs: ExitCodes

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