Jump to content

Recommended Posts

Posted

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!


Posted

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.

:)

Posted

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?

Posted

You run script.exe and then script.exe will run the installer.exe.

Your Au3 script may have for example

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

Posted
You run script.exe and then script.exe will run the installer.exe.

Your Au3 script may have for example

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

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 :D

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...