在论坛里找了前人的一些资料,现在把QQ2008最新版的自动安装源码放出来让大家帮测试一下,有问题还请大家帮忙指正一下!
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Tencent\TBH")
run("QQ2008IIBeta1KB2.exe")
WinWaitActive("QQ2008II Beta1 安装","欢迎使用 QQ2008II Beta1 安装向导")
send("!i")
WinWaitActive("QQ2008II Beta1 安装","选定使用环境")
ControlClick("QQ2008II Beta1 安装","选定使用环境","[class:Button;INSTANCE:6]")
ControlClick("QQ2008II Beta1 安装","选定使用环境","[class:Button;INSTANCE:10]")
send("!n")
WinWaitActive("QQ2008II Beta1 安装 ","选定安装位置和组件")
ControlClick("QQ2008II Beta1 安装 ","选定安装位置和组件","[class:Button;INSTANCE:4]")
ControlClick("QQ2008II Beta1 安装 ","选定安装位置和组件","[class:Button;INSTANCE:5]")
ControlClick("QQ2008II Beta1 安装 ","选定安装位置和组件","[class:Button;INSTANCE:6]")
send("!n")
WinWaitActive("QQ2008II Beta1 安装","完成 QQ2008II Beta1 安装向导")
ControlClick("QQ2008II Beta1 安装","完成 QQ2008II Beta1 安装向导","[class:Button;INSTANCE:4]")
ControlClick("QQ2008II Beta1 安装","完成 QQ2008II Beta1 安装向导","[class:Button;INSTANCE:5]")
ControlClick("QQ2008II Beta1 安装","完成 QQ2008II Beta1 安装向导","[class:Button;INSTANCE:6]")
send("!f")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Tencent\TBH")
FileDelete(@ProgramsDir&"\启动\腾讯QQ.lnk")
|