#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.10.0
 Author:         EKE

 Script Function:
	Installation Apache2.2

#ce ----------------------------------------------------------------------------

; Script Start
DirCreate ("C:\Inetpub")
DirCreate ("C:\Inetpub\Apache2.2")

#include <Process.au3>
$apache = "Apache HTTP Server 2.2 - Installation Wizard"
RunWait(@ComSpec & " /k start C:\Programme\Inetpub\sysfiles\apache.exe.msi")
WinWaitActive ($apache, "Welcome to")
Send ("!n")
WinWaitActive ($apache, "License Agreement")
Send ("!a!n")
WinWaitActive ($apache, "Read This First")
Send ("!n")
WinWaitActive ($apache, "Server Information")
Send ("localhost")
Send ("{tab}")
Send ("localhost")
Send ("{tab}")
Send ("#########")
Send ("!n")
WinWaitActive ($apache, "Setup Type")
Send ("!t")
Send ("!n")
WinWaitActive ($apache, "Destination Folder")
Send ("!c")
WinWaitActive ($apache, "Change Current Destination Folder")
Send ("C:\Inetpub\Apache2.2\")
Send ("{enter}")
WinWaitActive ($apache, "Destination Folder")
Send ("!n")
WinWaitActive ($apache, "Ready to Install the Program")
Send ("!i")
WinWaitActive ($apache, "Installation Wizard Completed") 
Send ("!f")
MsgBox ("64", "Apache", "Apache wurde erfolgreich installiert!", "2")
Send ("exit")
Send ("{enter}")

