Jump to content

Newbie! Need help with first AutoIT script


dsteph
 Share

Recommended Posts

Hello All!

I followed the tutorial here: http://www.autoitscript.com/autoit3/docs/tutorials/winzip/winzip.htm

and I was able to get a working script for a very simple setup file. When I right click and execute the script it run without issue. However, when I compile the script to exe and run it, it just hangs. The install does not look like it is firing off and the AutoIT icon just sits there in the system tray.

Here is the script I created:

Run("runtime40_setup.exe")
WinWaitActive("Gupta Runtime 4.0 - InstallShield Wizard", "will install Gupta Runtime")
Send ("!n")
WinWaitActive("Gupta Runtime 4.0 - InstallShield Wizard", "Click Next to install to this folder")
Send ("!n")
WinWaitActive("Gupta Runtime 4.0 - InstallShield Wizard", " ready to begin installation")
Send ("!i")
WinWaitActive("Gupta Runtime 4.0 - InstallShield Wizard", "has successfully installed")
Send ("!f")

Any ideas as to why when it gets compiled it doesn't seem to work?

Thanks in advance for your help!

- Dustin

Link to comment
Share on other sites

Well imagine that. I didn't know the exe needed to be in the same directory as the setup file. For some reason I thought it wrapped the setup file into the exe file. My autoit learning experience is already off to a good start!

Thanks a ton for the help. I can tell this community is going to be a great resource.

- Dustin

Link to comment
Share on other sites

You can wrap toyr install inside your AutoIt exe using FileInstall() :D

The first parameter for FileInstall is the Location of the on your HD (before compiling the script so autoit knows where to get the file from to add it to your exe) the 2nd prameter is where do you want the file to install to when a user runs your script :oops:

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

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