Help - Search - Members - Calendar
Full Version: Installing with AutoIt Macros
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
Pete_
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
To execute an Au3 file when AutoIt3.exe is in the current path or the systems path use:
CODE
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.
CODE
"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.
smile.gif
Pete_
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
You run script.exe and then script.exe will run the installer.exe.

Your Au3 script may have for example
CODE
Run(@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. smile.gif
Pete_
QUOTE (MHz @ Aug 21 2006, 09:27 PM) *
You run script.exe and then script.exe will run the installer.exe.

Your Au3 script may have for example
CODE
Run(@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. smile.gif


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 biggrin.gif
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.