ShellExecute("D:\software\ArcReader\Setup.msi") WinWaitActive("ArcReader Setup", "Click Cancel to quit Setup, and close any programs you have running.") ControlClick("ArcReader Setup", "Click Cancel to quit Setup, and close any programs you have running.", "Button1") WinWaitActive("License Agreement") ControlCommand("License Agreement", "", "Button2", "check") ControlClick("License Agreement", "", "Button6") WinWaitActive("ArcReader Setup", "Select Installation Type") ControlClick("ArcReader Setup", "Select Installation Type", "Button5") WinWaitActive("ArcReader Setup", "Select the folder where ArcReader is to be installed") ControlClick("ArcReader Setup", "Select the folder where ArcReader is to be installed", "Button1") WinWaitActive("ArcReader Setup", "Start Installation") ControlClick("ArcReader Setup", "Start Installation", "Button1") WinWaitActive("ArcReader Setup", "Click Finish to exit this installation") ControlClick("ArcReader Setup", "Click Finish to exit this installation", "Button1") If WinExists("Utah Geological Survey") Then WinActivate("Utah Geological Survey") Else Run("D:\autorun.exe") EndIf