Jump to content

Recommended Posts

Posted

I was updating an AutoIT script that was previously working, but as of today quit working. The script automates a program install that doesn't have a silent install option. After I first updated the script this morning it would start the installation program then the AutoIT script would end. The installation program showed no errors and was still running, it was just waiting on user input. When I checked windows error logs they were showing that the program successfully installed, even thought I hadn't gotten past the first screen of the installer. I then tried building the exe on different computer thinking maybe my desktop was corrupting the build somehow. Now its telling me

image.png.6737406532596f1bbb4dbc5bfdc20dcd.png

As you can see it is successfully starting the installer and is waiting for input. Here is the beginning of the script.

 

#RequireAdmin

;Run Installation
Run ("\\fs01\apps$\GE\Enervista\239\239setup311.exe")

;Start Installation
WinWaitActive("EnerVista 239 Setup", "Welcome to the")
ControlSend ("EnerVista 239 Setup", "Welcome to the", "{Enter}")

;License Agreement
WinWaitActive("EnerVista 239 Setup", "License Agreement")
ControlSend ("EnerVista 239 Setup", "License Agreement", "{Enter}")

 

Thanks all!

Posted

Geez, I was thinking the error was referring to the run command. The controlsends are what I was updating, so I really should have figured out that is what I screwed up. Thank you very much @Subz!

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