Jump to content
Sign in to follow this  
Cmack

calling setup.exe

Recommended Posts

Cmack

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

 

Share this post


Link to post
Share on other sites
Bearpocalypse

Can you post an example of you code? It would help a bunch.

Share this post


Link to post
Share on other sites
jdelaney

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.

Share this post


Link to post
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
Sign in to follow this  

×