; Acronis Privacy Expert Suite 7
; Batman75
; ----------------------------------------------------------------------------


; ----------------------------------------------------------------------------
; End User Var's
; ----------------------------------------------------------------------------

$SF_1 = "privacyexpertsuite.exe"				;		  Setup File Name
$OP_1 = "Y"							; (Y)es or (N)o - Install For All Users
$OP_2 = "N"							; (Y)es or (N)o - Install Pop-up Blocker
$UR_1 = "*****"							;		  User Registration Code Part 1
$UR_2 = "*****"							;		  User Registration Code Part 2
$UR_3 = "*****"							;		  User Registration Code Part 3
$UR_4 = "*****"							;		  User Registration Code Part 4
$UR_5 = "*****"							;		  User Registration Code Part 5

; ----------------------------------------------------------------------------
; Prevent Dup Script From Running
; ----------------------------------------------------------------------------

$g_szVersion = "Disk Director Suite v9.0"
If WinExists($g_szVersion) Then Exit ; It's already running
AutoItWinSetTitle($g_szVersion)


; ----------------------------------------------------------------------------
; Script Defaults
; ----------------------------------------------------------------------------

Opt	("CaretCoordMode",	1)	;1=absolute, 0=relative
Opt	("ExpandEnvStrings",	0)	;0=don't expand, 1=do expand
Opt	("MouseClickDelay",	10)	;10 milliseconds
Opt	("MouseClickDownDelay",	10)	;10 milliseconds
Opt	("MouseClickDragDelay",	250)	;250 milliseconds
Opt	("MouseCoordMode",	0)	;1=absolute, 0=relative
Opt	("MustDeclareVars",	0)	;0=no, 1=require pre-declare
Opt	("PixelCoordMode",	1)	;1=absolute, 0=relative
Opt	("RunErrorsFatal",	1)	;1=fatal, 0=silent set @error
Opt	("SendAttachMode",	0)	;0=don't attach, 1=do attach
Opt	("SendCapslockMode",	1)	;1=store and restore, 0=don't
Opt	("SendKeyDelay",	5)	;5 milliseconds
Opt	("SendKeyDownDelay",	1)	;1 millisecond
Opt	("TrayIconDebug",	0)	;0=no info, 1=debug line info
Opt	("TrayIconHide",	0)	;0=show, 1=hide tray icon
Opt	("WinDetectHiddenText",	0)	;0=don't detect, 1=do detect
Opt	("WinSearchChildren",	1)	;0=no, 1=search children also
Opt	("WinTitleMatchMode",	3)	;1=start, 2=subStr, 3=exact, 4=...
Opt	("WinWaitDelay",	250)	;250 milliseconds


; ----------------------------------------------------------------------------
; Script Start
; ----------------------------------------------------------------------------

Run($SF_1)

; Welcome
WinWait		( "Acronis Privacy Expert Suite Setup" )
ControlClick	( "Acronis Privacy Expert Suite Setup", "", "FXWindow4" )

; License
Sleep		( 100 )
Send		( "{ALTDOWN}an{ALTUP}" )

; Serial Number
Sleep		( 250 )
Send		( $UR_1 & $UR_2 & $UR_3 & $UR_4 & $UR_5 )
ControlClick	( "Acronis Privacy Expert Suite Setup", "", "FXWindow4" )

; Destination Location
Sleep		( 250 )
ControlClick	( "Acronis Privacy Expert Suite Setup", "", "FXWindow4" )

; Administrator Options
Sleep		( 250 )
If $OP_1 = "n" Then
	Send	( "{SPACE}" )
EndIf
ControlClick	( "Acronis Privacy Expert Suite Setup", "", "FXWindow4" )

; Start Menu
Sleep		( 250 )
ControlClick	( "Acronis Privacy Expert Suite Setup", "", "FXWindow4" )

; Pop-up Blocker
Sleep		( 250 )
If $OP_2 = "n" Then
	Send	( "{SPACE}" )
EndIf
ControlClick	( "Acronis Privacy Expert Suite Setup", "", "FXWindow4" )

; Ready to install
Sleep		( 250 )
ControlClick	( "Acronis Privacy Expert Suite Setup", "", "FXWindow4" )

; Processing
WinWait		( "Processing, please wait...", "" )
WinWaitClose	( "Processing, please wait...", "" )

; Create Bootable Rescue Media
Sleep		( 250 )
Send		( "{SPACE}" )
ControlClick	( "Acronis Privacy Expert Suite Setup", "", "FXWindow4" )

; View Readme Text
Sleep		( 250 )
Send		( "{SPACE}" )
ControlClick	( "Acronis Privacy Expert Suite Setup", "", "FXWindow4" )

; Reboot
Sleep		( 250 )
ControlClick	( "Acronis Privacy Expert Suite Setup", "", "FXWindow10" )

Exit

;EOF