hanjixunh 发表于 2009-3-12 06:59:44

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

坛子里的高手帮我看一看.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")

lynfr8 发表于 2009-3-12 09:27:17

ControlClick("MSXML 6.0 Parser Setup", "&Next >", "Button5")这句有问题!

hanjixunh 发表于 2009-3-12 11:28:55

谢谢楼上的,应该如何改.

131738 发表于 2009-3-12 13:17:23

ControlClick("MSXML 6.0 Parser Setup", "", "Button2")

试试看!
页: [1]
查看完整版本: 坛子里的高手帮我看一看.MSI的脚本错在哪