maniaczs Posted September 10, 2019 Posted September 10, 2019 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 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!
Subz Posted September 10, 2019 Posted September 10, 2019 You only have 3 paramaters in ControlSend, it should be 4.
maniaczs Posted September 10, 2019 Author Posted September 10, 2019 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now