#requireadmin
#Region AutoIt3Wrapper 预编译参数(常用参数)
#AutoIt3Wrapper_icon=ico.ico
#AutoIt3Wrapper_outfile=自动安装.exe
#AutoIt3Wrapper_Res_Description=迅雷 5.9.12.1196安装脚本
#AutoIt3Wrapper_Res_LegalCopyright = 版权所有 (C) 2010
#AutoIt3Wrapper_Res_Comment=www.51aou.com 制作:醉爱清茶
#EndRegion AutoIt3Wrapper 预编译参数设置完成
Run ('Thunder.exe')
traytip(" 温馨提示","自动安装期间为避免操作失败,请勿动键盘鼠标",15)
WinWaitActive("迅雷5 : 用户使用协议","欢迎使用 迅雷5 安装向导")
ControlClick("迅雷5 : 用户使用协议","是(&Y)>","Button2")
WinWaitActive("迅雷5: 安装选项","选择附加任务")
Send("{DOWN}{SPACE}{DOWN}{SPACE}{DOWN}{DOWN}{SPACE}")
ControlSetText("迅雷5: 安装选项","选择附加任务","Edit1","c:\Program Files\Thunder Network\Thunder")
ControlClick("迅雷5: 安装选项","下一步(&N) >","Button2")
WinWaitActive("安装:迅雷5","百度工具栏 轻松搜索,拦截广告")
ControlClick("安装:迅雷5","安装百度工具栏","Button4")
ControlClick("安装:迅雷5","下一步","Button2")
While 1
If ProcessExists("iexplore.exe") Then
ProcessClose("iexplore.exe")
ExitLoop
EndIf
WEnd
WinWaitActive("迅雷5: 安装完成","迅雷5安装程序已完成安装")
ControlClick("迅雷5: 安装完成","查看更新","Button5")
ControlClick("迅雷5: 安装完成","启动迅雷5","Button6")
ControlClick("迅雷5: 安装完成","将迅雷看看设为首页","Button7")
ControlClick("迅雷5: 安装完成","完成(&F)","Button2")
FileDelete(@DesktopCommonDir&"\迅雷游戏.lnk")
Run ('C:\Program Files\Thunder Network\Thunder\Program\Thunder.exe')
WinWaitActive("欢迎使用迅雷5","请选择您常用的下载目录")
ControlSetText("欢迎使用迅雷5","请选择您常用的下载目录","Edit1","D:\下载")
ControlClick("欢迎使用迅雷5","确定","Button1")
Run ('C:\Program Files\Thunder Network\Thunder\Program\FileLink\XLFileLinkConfig.exe')
WinWaitActive("文件关联配置","已关联的文件类型")
ControlClick("文件关联配置","全选/全不选","Button6")
ControlClick("文件关联配置","取消关联","Button4")
WinWaitActive("操作成功","所选文件类型已成功取消关联")
ControlClick("操作成功","确定","Button1")
WinWaitActive("文件关联配置","已关联的文件类型")
ControlClick("文件关联配置","确定","Button1")
sleep(5000)
While 1
If ProcessExists("Thunder.exe") Then
ProcessClose("Thunder.exe")
ExitLoop
EndIf
WEnd