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