此脚本得到lynfr8的大力支持,请大家指点
QQ2009正式版自动安装脚本说明
1.安装目录:D:\Program Files\QQ
2.个人文件夹保存到“我的文档”
3.取消把腾讯设为首页
4.取消安装腾讯软件管理器
5.取消安装中文搜搜
6.设置桌面快捷方式
7.取消快速启动栏快捷方式
8.取消安装完成后立即运行
9.取消安装完成后显示新特性
10.取消开机启动
Run('QQ2009.exe')
$hd="腾讯QQ2009 安装向导"
WinWait($hd,"我已阅读并同意")
WinWaitActive($hd,"我已阅读并同意")
ControlClick($hd,"","Button1")
Send("!n")
WinWait($hd,"自定义安装选项")
WinWaitActive($hd,"自定义安装选项")
ControlClick($hd,"","Button9")
ControlClick($hd,"","Button8")
ControlClick($hd,"","Button10")
ControlClick($hd,"","Button11")
ControlClick($hd,"","Button7")
send("!n")
WinWait($hd,"请选择安装路径")
WinWaitActive($hd,"请选择安装路径")
ControlSetText($hd,"","Edit1","D:\Program Files\QQ")
ControlClick($hd,"","Button8")
send("!i")
WinWait($hd,"安装完成")
WinWaitActive($hd,"安装完成")
ControlClick($hd,"","Button6")
ControlClick($hd,"","Button7")
ControlClick($hd,"","Button8")
send("!f")
sleep(10000) ;考虑到个别电脑可能比较慢,或者要转移的资料多,所以这儿的延迟时间设得比较大
if winactive("QQ数据迁移") Then
send("{ENTER}")
EndIf
[ 本帖最后由 zzfbz 于 2009-4-21 10:42 编辑 ] |