; ----------------------------------------------------------------------------
;-----------------------------------------------------------------------------
; AutoIt Version: 3.1.0
; Author:Andrew Calcutt 	Date:08/09/2005
; Script Function: Installs McAfee Antivirus 8.0i and Patch 10
;-----------------------------------------------------------------------------
;-----------------------------------------------------------------------------

Run(@ScriptDir & "\Setup.exe")
WinWaitActive("McAfee VirusScan Enterprise Setup", "&Next >")
ControlClick("McAfee VirusScan Enterprise Setup", "&Next >", "Button1")

WinWaitActive("Network Associates Licensing", "")
ControlClick("Network Associates Licensing", "", "Button1")
Send("{TAB}{TAB}{TAB}{DOWN}{DOWN}")
ControlClick("Network Associates Licensing", "", "Button1")
ControlClick("Network Associates Licensing", "", "Button3")

WinWaitActive("McAfee VirusScan Enterprise Setup", "")
ControlClick("McAfee VirusScan Enterprise Setup", "", "Button7")

WinWaitActive("McAfee VirusScan Enterprise Setup", "Ready to install")
ControlClick("McAfee VirusScan Enterprise Setup", "&Install", "Button1")

WinWaitActive("McAfee VirusScan Enterprise Setup", "&Finish")
ControlCommand("McAfee VirusScan Enterprise Setup", "&Update Now", "Button1", "UnCheck", "") ;DON'T UPDATE
ControlCommand("McAfee VirusScan Enterprise Setup", "&Run On-Demand Scan", "Button2", "UnCheck", "") ;
ControlClick("McAfee VirusScan Enterprise Setup", "&Finish", "Button3")


WinWaitActive("McAfee VirusScan Enterprise Setup", "Exclaim")
ControlClick("McAfee VirusScan Enterprise Setup", "Exclaim", "Button1")


