找回密码
 加入
搜索
查看: 1486|回复: 1

按顺序安装两个软件的问题

[复制链接]
发表于 2009-9-25 15:39:52 | 显示全部楼层 |阅读模式
我的程序里想按顺序安装两个软件,为什么总是安装完第一个就不在执行了!高手帮忙!
;Jre安装
Run("jre-6u4-windows-i586-p.exe", "",@SW_MINIMIZE)
WinWait('Java 安装 - 欢迎','查看许可协议...')
ControlClick("Java 安装 - 欢迎", "查看许可协议...", "Button2")
WinWait('Java 安装 - 完成 ','您已成功安装 Java(TM)')
ControlClick('Java 安装 - 完成 ','谢谢您的合作!',"Button1")
;Tomcat安装
Run("apache-tomcat-5.5.27.exe", "",@SW_MINIMIZE)
WinWait('Apache Tomcat Setup','Welcome to the Apache Tomcat Setup Wizard')
ControlClick("Apache Tomcat Setup", "Welcome to the Apache Tomcat Setup Wizard", "Button2")
WinWait('Apache Tomcat Setup ','Press Page Down to see the rest of the agreement.')
ControlClick('Apache Tomcat Setup ','Press Page Down to see the rest of the agreement.',"Button2")
WinWait('Apache Tomcat Setup','Or, select the optional components you wish to install')
ControlCommand('Apache Tomcat Setup','Or, select the optional components you wish to install',"ComboBox1","SetCurrentSelection",3)
ControlClick('Apache Tomcat Setup','Or, select the optional components you wish to install',"Button2")
WinWait('Apache Tomcat Setup','Setup will install Apache Tomcat in the following folder')
ControlSetText('Apache Tomcat Setup','Setup will install Apache Tomcat in the following folder',"Edit1",$stuppath)
ControlClick('Apache Tomcat Setup','Setup will install Apache Tomcat in the following folder',"Button2")
WinWait('Apache Tomcat Setup: Configuration Options','Tomcat basic configuration')
ControlSetText('Apache Tomcat Setup: Configuration Options','Tomcat basic configuration',"Edit3","admin")
ControlClick('Apache Tomcat Setup: Configuration Options','Tomcat basic configuration',"Button2")
WinWait('Apache Tomcat Setup: Java Virtual Machine path selection','Java Virtual Machine path selection')
ControlClick('Apache Tomcat Setup: Java Virtual Machine path selection','Java Virtual Machine path selection',"Button2")
WinWait('Apache Tomcat Setup','Apache Tomcat has been installed on your computer')
ControlClick('Apache Tomcat Setup','Apache Tomcat has been installed on your computer',"Button4")
ControlClick('Apache Tomcat Setup','Apache Tomcat has been installed on your computer',"Button5")
发表于 2009-9-26 16:22:56 | 显示全部楼层
在 ;Tomcat安装 那里 sleep(500) 试试先
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-25 02:21 , Processed in 0.069508 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表