|
发表于 2010-7-16 12:02:12
|
显示全部楼层
这个写软件安装脚本是基本知识
我帖下我的QQ2010的安装脚本,适合QQ2010所有版本
Run("QQ2010.exe")
WinWaitActive("腾讯QQ2010 安装向导","欢迎使用腾讯QQ2010")
ControlClick("腾讯QQ2010 安装向导","欢迎使用腾讯QQ2010","[class:Button;INSTANCE:1]")
ControlClick("腾讯QQ2010 安装向导","欢迎使用腾讯QQ2010","[class:Button;INSTANCE:3]")
Sleep(10)
WinWaitActive("腾讯QQ2010 安装向导","请选择自定义安装选项与快捷方式选项")
ControlClick("腾讯QQ2010 安装向导","请选择自定义安装选项与快捷方式选项","[class:Button;INSTANCE:9]")
ControlClick("腾讯QQ2010 安装向导","请选择自定义安装选项与快捷方式选项","[class:Button;INSTANCE:10]")
ControlClick("腾讯QQ2010 安装向导","请选择自定义安装选项与快捷方式选项","[class:Button;INSTANCE:7]")
ControlClick("腾讯QQ2010 安装向导","请选择自定义安装选项与快捷方式选项","[class:Button;INSTANCE:2]")
WinWaitActive("腾讯QQ2010 安装向导","请选择安装路径")
ControlClick("腾讯QQ2010 安装向导","请选择自定义安装选项与快捷方式选项","[class:Button;INSTANCE:2]")
WinWaitActive("腾讯QQ2010 安装向导","请选择安装路径")
ControlSetText("腾讯QQ2010 安装向导","请选择安装路径","[class:Edit;INSTANCE:1]","D:\Program Files\Tencent\QQ")
Sleep(10)
ControlClick("腾讯QQ2010 安装向导","请选择安装路径","[class:Button;INSTANCE:2]")
WinWaitActive("腾讯QQ2010 安装向导","安装完成")
ControlClick("腾讯QQ2010 安装向导","安装完成","[class:Button;INSTANCE:6]")
ControlClick("腾讯QQ2010 安装向导","安装完成","[class:Button;INSTANCE:8]")
ControlClick("腾讯QQ2010 安装向导","安装完成","[class:Button;INSTANCE:9]")
ControlClick("腾讯QQ2010 安装向导","安装完成","[class:Button;INSTANCE:7]")
Sleep(10)
ControlClick("腾讯QQ2010 安装向导","安装完成","[class:Button;INSTANCE:2]") |
|