Here you have the script for TTPack 2.2.0.3 (works in Windows XP 64bit too):
CODE
Opt("TrayIconDebug", 1)
Opt("SendKeyDelay", 200)
; Executable file name
$EXECUTABLE = "TTPack 2.2.0.3.exe"
; Detect the Operating System type (32 bit or 64 bit)
$OS = _OSBit()
If $OS = 32 Then
; Installation folder
$INSTALLLOCATION = @ProgramFilesDir & "\TTPack"
; Real Lite options
; Media Player (Optional)
$MediaPlayer = @ProgramFilesDir & "\Media Player Classic\mplayerc.exe"
; Alternative Browsers' Options
; Plugins' Folder
$PluginsFolder = $INSTALLLOCATION & "\Browser\Plugins"
; Components' Folder
$ComponentsFolder = $INSTALLLOCATION & "\Browser\Components"
; Start Menu folder
$StartMenuFolder = "TTPack"
If FileExists($INSTALLLOCATION & "\uninstall.exe") Then
MsgBox(0x40010, @ScriptName, "Please uninstall previous version of TTPack before using this script", 4)
Exit
EndIf
; Run the installer
Run($EXECUTABLE)
; Please select a language.
WinWait("Installer Language", "Please select a language.")
WinActivate("Installer Language", "Please select a language.")
ControlClick("Installer Language", "", "Button1")
; Welcome to the TTPack Setup Wizard
WinWait("TTPack Setup", "Welcome to the TTPack Setup Wizard")
WinActivate("TTPack Setup", "Welcome to the TTPack Setup Wizard")
ControlClick("TTPack Setup", "", "Button2")
; Choose Components
WinWait("TTPack Setup", "Choose Components")
WinActivate("TTPack Setup", "Choose Components")
Send("{SPACE}")
Send("{DOWN}")
Send("{SPACE}")
Send("{DOWN}")
Send("{SPACE}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{SPACE}")
ControlClick("TTPack Setup", "", "Button2")
; Choose Install Location
WinWait("TTPack Setup ", "Choose Install Location")
WinActivate("TTPack Setup ", "Choose Install Location")
ControlSetText("TTPack Setup ", "", "Edit1", "")
Sleep(1000)
ControlSetText("TTPack Setup ", "", "Edit1", $INSTALLLOCATION)
ControlClick("TTPack Setup ", "", "Button2")
; ReaLite's Options
WinWait("TTPack Setup", "ReaLite's Options")
WinActivate("TTPack Setup", "ReaLite's Options")
ControlSetText("TTPack Setup ", "", "Edit1", "")
Sleep(1000)
ControlSetText("TTPack Setup ", "", "Edit1", $MediaPlayer)
ControlClick("TTPack Setup", "", "Button2")
; Alternative Browsers' Options
WinWait("TTPack Setup", "Alternative Browsers' Options")
WinActivate("TTPack Setup", "Alternative Browsers' Options")
ControlSetText("TTPack Setup", "", "Edit1", "")
Sleep(1000)
ControlSetText("TTPack Setup", "", "Edit1", $PluginsFolder)
ControlSetText("TTPack Setup", "", "Edit2", "")
Sleep(1000)
ControlSetText("TTPack Setup", "", "Edit2", $ComponentsFolder)
ControlClick("TTPack Setup", "", "Button2")
; Choose Start Menu Folder
WinWait("TTPack Setup ", "Choose Start Menu Folder")
WinActivate("TTPack Setup ", "Choose Start Menu Folder")
ControlSetText("TTPack Setup", "", "Edit1", "")
Sleep(1000)
ControlSetText("TTPack Setup", "", "Edit1", $StartMenuFolder)
ControlClick("TTPack Setup ", "", "Button2")
; Installation Complete
WinWait("TTPack Setup ", "Installation Complete")
WinActivate("TTPack Setup ", "Installation Complete")
ControlClick("TTPack Setup ", "", "Button2")
; Completing the TTPack Setup Wizard
WinWait("TTPack Setup ", "Completing the TTPack Setup Wizard")
WinActivate("TTPack Setup ", "Completing the TTPack Setup Wizard")
ControlClick("TTPack Setup ", "", "Button2")
EndIf
If $OS = 64 Then
; Installation folder
$INSTALLLOCATION = @HomeDrive & "\Program Files (x86)\TTPack"
; Real Lite options
; Media Player (Optional)
$MediaPlayer = @HomeDrive & "\Program Files (x86)\Media Player Classic\mplayerc.exe"
; Alternative Browsers' Options
; Plugins' Folder
$PluginsFolder = $INSTALLLOCATION & "\Browser\Plugins"
; Components' Folder
$ComponentsFolder = $INSTALLLOCATION & "\Browser\Components"
; Start Menu folder
$StartMenuFolder = "TTPack"
If FileExists($INSTALLLOCATION & "\uninstall.exe") Then
MsgBox(0x40010, @ScriptName, "Please uninstall previous version of TTPack before using this script", 4)
Exit
EndIf
; Run the installer
Run($EXECUTABLE)
; Please select a language.
WinWait("Installer Language", "Please select a language.")
WinActivate("Installer Language", "Please select a language.")
ControlClick("Installer Language", "", "Button1")
; Welcome to the TTPack Setup Wizard
WinWait("TTPack Setup", "Welcome to the TTPack Setup Wizard")
WinActivate("TTPack Setup", "Welcome to the TTPack Setup Wizard")
ControlClick("TTPack Setup", "", "Button2")
; Choose Components
WinWait("TTPack Setup", "Choose Components")
WinActivate("TTPack Setup", "Choose Components")
Send("{SPACE}")
Send("{DOWN}")
Send("{SPACE}")
Send("{DOWN}")
Send("{SPACE}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{SPACE}")
ControlClick("TTPack Setup", "", "Button2")
; Choose Install Location
WinWait("TTPack Setup ", "Choose Install Location")
WinActivate("TTPack Setup ", "Choose Install Location")
ControlSetText("TTPack Setup ", "", "Edit1", "")
Sleep(1000)
ControlSetText("TTPack Setup ", "", "Edit1", $INSTALLLOCATION)
ControlClick("TTPack Setup ", "", "Button2")
; ReaLite's Options
WinWait("TTPack Setup", "ReaLite's Options")
WinActivate("TTPack Setup", "ReaLite's Options")
ControlSetText("TTPack Setup ", "", "Edit1", "")
Sleep(1000)
ControlSetText("TTPack Setup ", "", "Edit1", $MediaPlayer)
ControlClick("TTPack Setup", "", "Button2")
; Alternative Browsers' Options
WinWait("TTPack Setup", "Alternative Browsers' Options")
WinActivate("TTPack Setup", "Alternative Browsers' Options")
ControlSetText("TTPack Setup", "", "Edit1", "")
Sleep(1000)
ControlSetText("TTPack Setup", "", "Edit1", $PluginsFolder)
ControlSetText("TTPack Setup", "", "Edit2", "")
Sleep(1000)
ControlSetText("TTPack Setup", "", "Edit2", $ComponentsFolder)
ControlClick("TTPack Setup", "", "Button2")
; Choose Start Menu Folder
WinWait("TTPack Setup ", "Choose Start Menu Folder")
WinActivate("TTPack Setup ", "Choose Start Menu Folder")
ControlSetText("TTPack Setup", "", "Edit1", "")
Sleep(1000)
ControlSetText("TTPack Setup", "", "Edit1", $StartMenuFolder)
ControlClick("TTPack Setup ", "", "Button2")
; Installation Complete
WinWait("TTPack Setup ", "Installation Complete")
WinActivate("TTPack Setup ", "Installation Complete")
ControlClick("TTPack Setup ", "", "Button2")
; Completing the TTPack Setup Wizard
WinWait("TTPack Setup ", "Completing the TTPack Setup Wizard")
WinActivate("TTPack Setup ", "Completing the TTPack Setup Wizard")
ControlClick("TTPack Setup ", "", "Button2")
EndIf
Func _OSBit()
Local $tOS = DllStructCreate("char[256]")
Local $aGSWD = DllCall("Kernel32.dll", "int", "GetSystemWow64Directory", "ptr", DllStructGetPtr($tOS), "int", 256)
If IsArray($aGSWD) And DllStructGetData($tOS, 1) Then Return 64
Return 32
EndFunc
Read it and learn.
Cheers.