Run("D:\Setup.exe") WinWait("Livengood GeoExplorer Setup", "OK") ControlClick("[LAST]", "OK", "ThunderRT6CommandButton2") WinWait("[LAST]", "Change Directory") ControlClick("[LAST]", "Change Directory", "[CLASS:ThunderRT6CommandButton; INSTANCE:1]") WinWait("Livengood GeoExplorer - Choose Program Group") ControlClick("[LAST]", "", "ThunderRT6CommandButton2") While Not WinExists("Livengood GeoExplorer Setup", "Livengood GeoExplorer Setup was completed successfully.") If WinExists("Version Conflict") Then ControlClick("[LAST]", "", "ThunderRT6CommandButton3") EndIf Sleep(100) WEnd WinWait("Livengood GeoExplorer Setup", "Livengood GeoExplorer Setup was completed successfully.") ControlClick("[LAST]", "Livengood GeoExplorer Setup was completed successfully.", "Button1")