Guest DrRaven Posted August 24, 2005 Posted August 24, 2005 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
LxP Posted August 24, 2005 Posted August 24, 2005 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.
Confuzzled Posted August 24, 2005 Posted August 24, 2005 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?
Gigglestick Posted August 24, 2005 Posted August 24, 2005 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
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