回复 2# 小A
#NoTrayIcon ;不显示托盘图标
$Win = '腾讯QQ2011 安装向导';安装窗口
$text = 'D:\QQ2011';安装路径
Run('QQ2011Beta1.EXE');文件路径
WinWait($Win,'在安装软件前, 请仔细阅读下面的软件许可协议和青少年上网安全指引。')
ControlClick($Win,'',"[ID:1020]")
ControlClick($Win,'',"[CLASS:Button;INSTANCE:3]")
WinWait($Win,'请选择自定义安装选项与快捷方式选项')
ControlClick($Win,'',"[ID:1007]");去除QQ工具栏
ControlClick($Win,'',"[ID:1017]");去除QQ音乐
ControlClick($Win,'',"[ID:3016]");去除QQlive
ControlClick($Win,'',"[ID:1036]");去除快速启动栏
ControlClick($Win,'',"[CLASS:Button;INSTANCE:2]")
WinWait($Win,'请选择安装路径')
ControlSetText($Win,'','Edit1',$text)
ControlClick($Win,'','[CLASS:Button;INSTANCE:2]')
WinWait($Win,'安装完成')
ControlClick($Win,'',"[ID:1045]");去除运行QQ
ControlClick($Win,'',"[ID:1047]");去除开机运行
ControlClick($Win,'',"[ID:1038]");去除设置腾讯为主页
ControlClick($Win,'',"[ID:1046]");去除设置腾讯为主页
ControlClick($Win,'',"[CLASS:Button;INSTANCE:2]")
|