Pete_ Posted August 20, 2006 Posted August 20, 2006 Hi!I run my setup with autoit macros, and it made the au3-file, how do i run now my setup from .cmd with au3?Do I have to use some syntax? Thanks!
MHz Posted August 21, 2006 Posted August 21, 2006 To execute an Au3 file when AutoIt3.exe is in the current path or the systems path use:AutoIt3.exe "path/to/script.au3"If not seen in the path, then you may need to also specify the "path\to\AutoIt3.exe".If the Au3 file is compiled into an executable, then use same syntax as running any other executable."path\to\script.exe"Switches used on the installer being automated, deleting shortcuts etc would be expected to be contained within the script itself.AutoIt3 is here if needed.Scite4AutoIt3 editor is here also if needed.
Pete_ Posted August 21, 2006 Author Posted August 21, 2006 Hi!I have now compiled the script to exe, but it seems that i have to run the script exe and the original exe, so the original exe is being run my script.exe. How can i run the both from my cmd-line?
MHz Posted August 21, 2006 Posted August 21, 2006 You run script.exe and then script.exe will run the installer.exe.Your Au3 script may have for exampleRun(@ScriptDir & '\installer.exe')So the script.exe will run installer.exe within the same directory. Only need to run script.exe from your cmd file.
Pete_ Posted August 21, 2006 Author Posted August 21, 2006 You run script.exe and then script.exe will run the installer.exe.Your Au3 script may have for exampleRun(@ScriptDir & '\installer.exe')So the script.exe will run installer.exe within the same directory. Only need to run script.exe from your cmd file. Yes thank you very much Mhz!! Dummy me, didint find that execute button, so the macro was fine but it didnt launch the setup file
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