找回密码
 加入
搜索
查看: 1935|回复: 3

坛子里的高手帮我看一看.MSI的脚本错在哪

[复制链接]
发表于 2009-3-12 06:59:44 | 显示全部楼层 |阅读模式
坛子里的高手帮我看一看.MSI的脚本错在哪

#NoTrayIcon
#Region ;**** 参数创建于 AutoIt3Wrapper ****
#AutoIt3Wrapper_icon=ico.ICO
#AutoIt3Wrapper_Res_Comment=自动安装msxm.msi
#AutoIt3Wrapper_Res_Description=自动安装
#AutoIt3Wrapper_Res_Fileversion=6.0
#AutoIt3Wrapper_Res_LegalCopyright=hanjixun
#EndRegion ;**** 参数创建于 AutoIt3Wrapper ****
Run("msiexec /i msxm.msi")

WinWait("MSXML 6.0 Parser Setup", "Welcome to the MSXML 6.0 Parser Setup")
If Not WinActivate("MSXML 6.0 Parser Setup", "Welcome to the MSXML 6.0 Parser Setup") Then
    WinActivate("MSXML 6.0 Parser Setup", "Welcome to the MSXML 6.0 Parser Setup")
    WinWaitActive("MSXML 6.0 Parser Setup", "Welcome to the MSXML 6.0 Parser Setup")
EndIf
ControlClick("MSXML 6.0 Parser Setup", "&Next >", "Button2")
第一步就不往下执行了!
WinWait("MSXML 6.0 Parser Setup", "License Agreement")
If Not WinActivate("MSXML 6.0 Parser Setup", "License Agreement") Then
    WinActivate("MSXML 6.0 Parser Setup", "License Agreement")
    WinWaitActive("MSXML 6.0 Parser Setup", "License Agreement")
EndIf
ControlClick("MSXML 6.0 Parser Setup", "I &accept the terms in the license agreement", "Button3")
ControlClick("MSXML 6.0 Parser Setup", "&Next >", "Button5")

WinWait("MSXML 6.0 Parser Setup", "Registration Information")
If Not WinActivate("MSXML 6.0 Parser Setup", "Registration Information") Then
    WinActivate("MSXML 6.0 Parser Setup", "Registration Information")
    WinWaitActive("MSXML 6.0 Parser Setup", "Registration Information")
EndIf
ControlClick("MSXML 6.0 Parser Setup", "&Next >", "Button2")

WinWait("MSXML 6.0 Parser Setup", "Ready to Install the Program ")
If Not WinActivate("MSXML 6.0 Parser Setup", "Ready to Install the Program ") Then
    WinActivate("MSXML 6.0 Parser Setup", "Ready to Install the Program ")
    WinWaitActive("MSXML 6.0 Parser Setup", "Ready to Install the Program ")
EndIf
ControlClick("MSXML 6.0 Parser Setup", "&Install", "Button1")
发表于 2009-3-12 09:27:17 | 显示全部楼层
ControlClick("MSXML 6.0 Parser Setup", "&Next >", "Button5")这句有问题!
 楼主| 发表于 2009-3-12 11:28:55 | 显示全部楼层
谢谢楼上的,应该如何改.
发表于 2009-3-12 13:17:23 | 显示全部楼层
ControlClick("MSXML 6.0 Parser Setup", "", "Button2")

试试看!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-23 07:24 , Processed in 0.091436 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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