#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Compile_Both=n
#AutoIt3Wrapper_UseX64=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

If FileExists("SETUP.exe") Then
   ShellExecute("SETUP.exe","",@WorkingDir)
   ;Sleep(500)
   WinWaitActive("Welcome","Welcome to the DAPcell Basic Server Setup program")
   ;Sleep(500)
   Send("{ENTER}")
   WinWaitActive("Select Installation Directories","Source Directory")
   ;Sleep(500)
   Send("{ENTER}")
   WinWaitActive("Select Installation Options","Please select the desired operation and continue.")
   Sleep(500)
   Send("{ENTER}")
   Sleep(5000)
   IF WinExists("Windows Security","Install") Then
      WinActive("Windows Security","Install")
	  Sleep(500)
      Send("i")
   EndIf
   WinWaitActive("Start Copying Files","CurrentSettings")
   ;Sleep(500)
   Send("{ENTER}")
   WinWaitActive("Install DOS ACCEL Driver Stub","Install DOS ACCEL Driver Stub")
   ;Sleep(500)
   Send("{ENTER}")
   WinWaitActive("Information","OK")
   ;Sleep(500)
   Send("{ENTER}")
EndIf