#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=qq.ico
#AutoIt3Wrapper_outfile=AutoSetup QQ2011Beta2.exe
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Description=By len
#AutoIt3Wrapper_Res_Fileversion=2011.7.21.3
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_LegalCopyright=Copyright 2011 len
#AutoIt3Wrapper_Res_Field=程序设计|len
#AutoIt3Wrapper_Res_Field=作者网站|暂无
#AutoIt3Wrapper_Res_Field=更新日期|2011-07-21
#AutoIt3Wrapper_Res_Field=适用版本|QQ2011Beta2
#AutoIt3Wrapper_Res_Field=源文件名|QQ.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_UseAnsi=y
TrayTip("正在安装QQ2011 beta2","正在安装QQ2011 beta2,这期间请不要做任何操作,以防程序无法往下进行安装!",3,4)
If FileExists(@ScriptDir & "\QQ2011Beta2.exe")=0 then
BlockInput(0)
MsgBox(4112,"安装错误","出错行:"& @ScriptLineNumber & @CR &"没有找到“QQ2011Beta2.exe”"& @CR & "安装文件,安装无法进行!")
Exit
Else
Run("QQ2011Beta2.exe")
EndIf
;第一个窗口接受协议
WinActive("腾讯QQ2011 安装向导","欢迎使用腾讯QQ2011")
WinWaitActive("腾讯QQ2011 安装向导","我已阅读并同意软件许可协议和青少年上网安全指引")
ControlCommand("腾讯QQ2011 安装向导","我已阅读并同意软件许可协议和青少年上网安全指引","Button1","Check","")
ControlClick("腾讯QQ2011 安装向导","我已阅读并同意软件许可协议和青少年上网安全指引","Button3","left")
;第二个窗口取消其他没有用的选项
WinWaitActive("腾讯QQ2011 安装向导","请选择自定义安装选项与快捷方式选项")
ControlClick("腾讯QQ2011 安装向导","请选择自定义安装选项与快捷方式选项","Button9","left")
ControlClick("腾讯QQ2011 安装向导","请选择自定义安装选项与快捷方式选项","Button12","left")
ControlClick("腾讯QQ2011 安装向导","请选择自定义安装选项与快捷方式选项","Button17","left")
ControlClick("腾讯QQ2011 安装向导","请选择自定义安装选项与快捷方式选项","Button7","left")
ControlClick("腾讯QQ2011 安装向导","请选择自定义安装选项与快捷方式选项","Button2","left")
;第三个窗口设置Q的安装路径
WinWaitActive("腾讯QQ2011 安装向导","请选择安装路径")
ControlSetText("腾讯QQ2011 安装向导","请选择安装路径","Edit1",@ProgramFilesDir & "\Tencent\QQ")
ControlClick("腾讯QQ2011 安装向导","请选择安装路径","Button2","left")
;第四个窗口结束窗口
WinWaitActive("腾讯QQ2011 安装向导","安装完成")
ControlClick("腾讯QQ2011 安装向导","安装完成","Button6","left")
ControlClick("腾讯QQ2011 安装向导","安装完成","Button8","left")
ControlClick("腾讯QQ2011 安装向导","安装完成","Button9","left")
ControlClick("腾讯QQ2011 安装向导","安装完成","Button7","left")
ControlClick("腾讯QQ2011 安装向导","安装完成","Button2","left")
;第五个窗口 取消QQ电脑管家的安装
WinWaitActive("QQ电脑管家在线安装","不安装")
ControlClick("QQ电脑管家在线安装","不安装","Button4","left")
WinWaitActive("","")
ControlClick("","","Button2","left")
;
;
;
;结束