|
Run("setup.exe")
WinWaitActive("WinRAR 自解压文件","目标文件夹")
ControlClick ("WinRAR 自解压文件","安装进度","Button2","left","1")
if winactive("确认文件替换") Then
send("!a")
EndIf
if winactive("修复 NBSGPOS(&R)") Then
send("!f")
EndIf
WinWaitActive("NBSGPOS","欢迎使用 NBSGPOS 安装向导")
ControlClick ("NBSGPOS","下一步(&N) >","Button1","left","1")
WinWaitActive("NBSGPOS","选择安装文件夹")
ControlSetText("NBSGPOS","选择安装文件夹","RichEdit20W1"," C:\Program Files\Setup ")
WinWaitActive("NBSGPOS","选择安装文件夹")
ControlClick ("NBSGPOS","下一步(&N) >","Button1","left","1")
WinWaitActive("NBSGPOS","确认安装")
ControlClick ("NBSGPOS","确认安装","Button1","left","1")
WinWaitActive("NBSGPOS","安装完成")
ControlClick ("NBSGPOS","安装完成","Button1","left","1")
执行一次解压后,再执行的话,要覆盖,这个怎么写,我上面的第一个IF不会执行(如上图)。程序全部安装后,如果安装第二次,弹出的修复窗口怎么执行?(如下图)全部程序在附件里。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
|