|
开始安装阶段良好,到安装完成后一切正常,但是安装后隔十几秒种弹出来“配置卡巴”的步骤,试写了N次,这个配置窗口就是不能激活,导致安装中断,有写过或知道错误的原因请指点一下,无限感激。
windows info tools信息附在图的右边,在这个窗口弹出前,设置了3秒、5秒、8秒、15秒或不设置SLEEP时间都无法激活,真不知道出错在哪了。
run("kis_7.0.1.325_CN.exe")
winwaitactive("Kaspersky Internet Security 7.0","欢迎使用Kaspersky Internet Security 7.0安装向导")
send("!n")
winwaitactive("Kaspersky Internet Security 7.0","标准最终用户授权许可协议")
send("!a")
send("!n")
winwaitactive("Kaspersky Internet Security 7.0","安装类型")
controlclick("Kaspersky Internet Security 7.0","安装类型" ,2645)
winwaitactive("Kaspersky Internet Security 7.0","选择目的文件夹")
controlsettext("Kaspersky Internet Security 7.0","选择目的文件夹" ,2863,"d:\Program Files\Kaspersky Lab\Kaspersky Internet Security 7.0\")
send("!n")
winwaitactive("Kaspersky Internet Security 7.0","自定义安装")
send("!n")
winwaitactive("Kaspersky Internet Security 7.0","准备安装")
send("!i")
winwaitactive("Kaspersky Internet Security 7.0","安装完成")
send("!n")
sleep(30000)
以下开始中断
winwaitactive("设置向导: Kaspersky Internet Security","授权文件信息")
send("!n")
winwaitactive("设置向导: Kaspersky Internet Security","基本保护(推荐给多数用户)")
send("!n")
winwaitactive("设置向导: Kaspersky Internet Security","更新模式")
send("!n")
winwaitactive("设置向导: Kaspersky Internet Security","扫描启动对象")
send("!n")
winwaitactive("设置向导: Kaspersky Internet Security","网络")
send("!n")
winwaitactive("设置向导: Kaspersky Internet Security","应用程序(&A)...")
send("!n")
winwaitactive("设置向导: Kaspersky Internet Security","重新启动电脑(&R)")
ControlClick("设置向导: Kaspersky Internet Security","重新启动电脑(&R)" ,51900)
send("!f")
|
|