Avatar of RhoSysAdmin
RhoSysAdmin
Flag for United States of America

asked on 

AutoIT script gets stuck during simple unattended install

I have the script below trying to install a simple windows app.  It gets stuck on the "Customer Information" window where I try to enter text in the fields.  I've tried several combinations but cannot seem to get it past this window.  This is my first AutoIT script, so I'm hopeful it's something simple I'm missing.

#RequireAdmin

; Run SAS System Viewer 9.1 installer
Run("setup.exe")

; Initial setup screen
WinWaitActive("InstallShield Wizard", "Welcome to the SAS System Viewer")
Send("!n")

; Customer Information
WinWaitActive("Installshield Wizard", "Customer Information")
Send("RHO{TAB}")
Send("Rho, Inc.!n")

; Select Language
WinWaitActive("Installshield Wizard", "Select Language")
Send("!n")

; Choose Destination Folder
WinWaitActive("Installshield Wizard", "Choose Destination Folder")
Send("!n")

; SAS Shared Files
WinWaitActive("Installshield Wizard", "SAS Shared Files")
Send("!n")

; Select Program Folder
WinWaitActive("Installshield Wizard", "Select Program Folder")
Send("!n")

; Start Copying Files
WinWaitActive("Installshield Wizard", "Start Copying Files")
Send("!n")

; Completed installation screen
WinWaitActive("Installshield Wizard", "SAS System Viewer 9.1 Setup Complete")
Send("{ENTER}")
Installation

Avatar of undefined
Last Comment
RhoSysAdmin

8/22/2022 - Mon