;-----------------------------------------------------------------------------
;-----------------------------------------------------------------------------
; AutoIt Version: 3.1.0
; Author:Andrew Calcutt 	Date:01/04/2006
; Script Function: Auto-Install Office
;-----------------------------------------------------------------------------
;-----------------------------------------------------------------------------
;Run the Office install
Run(@ScriptDir & "\SETUPPRO.EXE")

;Wait to ask for personal info
WinWaitActive("Microsoft Office 2003 Setup", "&User name:")
Send("!n")

;pick custom install
WinWaitActive("Microsoft Office 2003 Setup", "&Custom Install")
Send("!c")
Send("!n")

;choose all apps
WinWaitActive("Microsoft Office 2003 Setup", "&Choose advanced customization of applications.")
Send("!c")
Send("!n")

WinWaitActive("Microsoft Office 2003 Setup", "Choose installation options for applications and tools.")
Send("{SPACE}")
Send("{DOWN}")
Send("{DOWN}")
Send("{ENTER}")
Send("!n")

;start install
WinWaitActive("Microsoft Office 2003 Setup", "&Install")
Send("!i")

;finish
WinWaitActive("Microsoft Office 2003 Setup", "&Finish")
Send("!f")
	
