;-----------------------------------------------------------------------------
;-----------------------------------------------------------------------------
; AutoIt Version: 3.1.0
; Author:Andrew Calcutt 	Date:08/09/2005
; Script Function: Installs Cisco VPN
;-----------------------------------------------------------------------------
;-----------------------------------------------------------------------------

Run("Setup.exe")
WinWaitActive("Cisco Systems VPN Client Setup", "&Next")
ControlClick("Cisco Systems VPN Client Setup", "&Next", "Button1")
WinWaitActive("Cisco Systems VPN Client Setup", "LICENSE AGREEMENT")
ControlClick("Cisco Systems VPN Client Setup", "LICENSE AGREEMENT", "Button2")
WinWaitActive("Cisco Systems VPN Client Setup", "Destination Folder")
ControlClick("Cisco Systems VPN Client Setup", "Destination Folder", "Button1")
WinWaitActive("Cisco Systems VPN Client Setup", "&Program Folders:")
ControlClick("Cisco Systems VPN Client Setup", "&Program Folders:", "Button2")
WinWaitActive("Cisco Systems VPN Client Setup", "Finish")

;ControlClick("Cisco Systems VPN Client Setup", "Finish", "Button1")				;Restart? - Yes
ControlClick("Cisco Systems VPN Client Setup", "Finish", "Button2") ;Restart? - No

ControlClick("Cisco Systems VPN Client Setup", "Finish", "Button4")