Jump to content

calling setup.exe


Cmack
 Share

Recommended Posts

Just starting on AutoIT.  I'm just wanting to call a setup.exe but it never launches

Run("clientsetup.exe") ; launch clientsetup.exe

I'm running the AutoIT EXE from the same directory as the clientsetup.exe is located.  I also tried using the full path where clientsetup.exe is located. 

I see the AutoIT icon in the systray, and it is paused. 
 

What am I missing here?

Craig

 

Link to comment
Share on other sites

If you click the tray icon, your script will stop executing.

Is it flashing a red X?

Unpause it.

Also, add some debugging:

If Not Run("clientsetup.exe") Then
   MsgBox(1,1,"Failed to Run " & @WorkingDir & "\clientsetup.exe")
EndIF

If the exe will ALWAYS be in the same dir as the script:

If Not Run(@ScriptDir & "\clientsetup.exe") Then
    MsgBox(1,1,"Failed to Run " & @ScriptDir & "\clientsetup.exe")
EndIF
Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
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...