Sleep(3000) If not WinExists("WTO Setup") Then Run("D:\SETUP.EXE") EndIf WinActivate("WTO Setup") WinActivate("Welcome") WinWaitActive("Welcome", "Welcome to the WTO Setup program") Send("!n") WinWaitActive("Software License Agreement") Send("!y") WinWaitActive("Choose Destination Location") Send("!n") WinWaitActive("Setup Complete") Send("!f") Sleep(3000) If not WinExists("Home page - BookWorks Browser") Then ShellExecute("D:\WTO.odb") EndIf