Here's a little something I put together in AutoIt for installing Daemon Tools v4 (without Toolbar and shortcuts).
CODE
; AutoIt options.
AutoItSetOption("TrayIconHide", 1)
AutoItSetOption("WinTitleMatchMode", 4)
; Verify only one instance of installer is running.
$installername = "AutoInstaller for DaemonTools 4"
If WinExists($installername) Then
SplashTextOn("Error", @CRLF & @CRLF & "An instance of this script is already running.", 350, 90, -1, -1, -1, "Arial", 11, 11)
WinActivate("Error")
Sleep(4000)
SplashOff()
Exit
EndIf
AutoItWinSetTitle($installername)
; Installation variables.
$installerpath = @ScriptDir & "\daemon400.exe"
$programpath = @ProgramFilesDir & "\DAEMON Tools\daemon.exe"
; Verify installation file path.
If Not FileExists($installerpath) Then
SplashTextOn("Error", @CRLF & " File not found:" & @CRLF & " " & $installerpath, 500, 90, -1, -1, 4, "Arial", 11, 11)
WinActivate("Error")
Sleep(4000)
SplashOff()
Exit
EndIf
; Verify application is not already installed.
If FileExists($programpath) Then
SplashTextOn("Error", @CRLF & @CRLF & "Daemon Tools 4 already installed.", 350, 90, -1, -1, -1, "Arial", 11, 11)
WinActivate("Error")
Sleep(4000)
SplashOff()
Exit
EndIf
; Start installation.
Run($installerpath)
; Welcome dialog.
WinWait("DAEMON Tools 4.00HE", "Welcome to the DAEMON Tools 4.00 Setup Wizard")
ControlClick("DAEMON Tools 4.00HE", "Welcome to the DAEMON Tools 4.00 Setup Wizard", "Button2")
; License agreement.
WinWait("DAEMON Tools 4.00HE", "License Agreement")
ControlClick("DAEMON Tools 4.00HE", "License Agreement", "Button2")
; Choose Components.
BlockInput(1)
WinWait("DAEMON Tools 4.00HE", "Choose Components")
WinActivate("DAEMON Tools 4.00HE", "Choose Components")
WinWaitActive("DAEMON Tools 4.00HE", "Choose Components")
ControlFocus("DAEMON Tools 4.00HE", "Choose Components", "ComboBox1")
Send("{TAB}")
Sleep(500)
Send("{DOWN}")
Sleep(500)
Send("{SPACE}")
Sleep(500)
Send("{DOWN}")
Sleep(500)
Send("{SPACE}")
Sleep(500)
Send("{DOWN}")
Sleep(500)
Send("{SPACE}")
ControlClick("DAEMON Tools 4.00HE", "Choose Components", "Button2")
BlockInput(0)
; Choose Install Location.
WinWait("DAEMON Tools 4.00HE", "Choose Install Location")
ControlClick("DAEMON Tools 4.00HE", "Choose Install Location", "Button2")
; Completing the DAEMON Tools Setup Wizard.
WinWait("DAEMON Tools 4.00HE", "Completing the DAEMON Tools Setup Wizard")
ControlClick("DAEMON Tools 4.00HE", "Completing the DAEMON Tools Setup Wizard", "Button4")
Sleep(500)
ControlClick("DAEMON Tools 4.00HE", "Completing the DAEMON Tools Setup Wizard", "Button2")
Exit
;eof