Jump to content
Sign in to follow this  
DW1

how to compile a script from a script

Recommended Posts

How would I have a script (exe) run, giving the user some options for the build, and then (this is the part I need help with) compile a new exe with some fileinstall's dependant on what the user selects.

I only need help in compiling another autoit exe from another autoit exe

You just need to use run or runwait or shellexecute, then use the command line info in help under 'compiling scripts'.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

How would I have a script (exe) run, giving the user some options for the build, and then (this is the part I need help with) compile a new exe with some fileinstall's dependant on what the user selects.

I only need help in compiling another autoit exe from another autoit exe

Since FileInstall() will not accept a variable for the source, you will have to edit the source .au3 file with literal path strings before compiling. Then, of course, you can just ShellExecute the Aut2exe compiler as per the help file:

Method 3 - The Command Line

The Aut2Exe.exe program can be run from the command line as follows:

Aut2exe.exe /in <infile.au3> [/out <outfile.exe>] [/icon <iconfile.ico>] [/nodecompile] [/comp 0-4] [/pass <passphrase>] [/nopack] [/ansi] [/unicode]

Long filenames should be enclosed in double-quotes like "C:\Program Files\Test\test.au3". If no "out" file is given the input filename is used with a .exe extension.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Thanks guys, busy day at work so I just now got time to check on the forum.

@DBak, yes that is what I was looking for, a way to compile an exe from a script on a machine that does not have autoit. Thank you

Thanks for the help guys, and a huge thank you to GeoSoft, who sent me a UDF on just this.... it's perfect :)

You guys are the best, I don't know what I would do without the autoit forum.... besides maybe get some real work done LOL

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  

×
×
  • Create New...