Jump to content

how to compile a script from a script


DW1
 Share

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.
Link to comment
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
Link to comment
Share on other sites

I asked a simular question on the general help and support forum look it up I got a really simple answer, but If you need the script to be compiled on a computer that doesn't have AutoIT installed then you'll need to FileInstall the autoit.exe into your script.

Good luck!

[center][/center]

Link to comment
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

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