本帖最后由 兜兜转转 于 2010-11-24 16:40 编辑
小弟弱弱的问个问题
下面是一个ACDSee自动化安装程序,有的时候可以正常安装。
有的时候停止在输入License那个界面,貌似主要原因在于没有输入License就执行了这个命令。
ControlClick("ACDSee 5.0 PowerPack - InstallShield Wizard","Customer Information","Button4")
老大们有什么好的方式能帮忙改进下吗?Run("D\Tools\Image\acdpwp500win-en.exe")
WinWaitActive("ACDSee 5.0 PowerPack - InstallShield Wizard","WARNING: This program is protected by copyright law and international treaties.")
ControlClick("ACDSee 5.0 PowerPack - InstallShield Wizard","WARNING: This program is protected by copyright law and international treaties.","Button1")
WinWaitActive("ACDSee 5.0 PowerPack - InstallShield Wizard","License Agreement")
ControlClick("ACDSee 5.0 PowerPack - InstallShield Wizard","License Agreement","Button3")
ControlClick("ACDSee 5.0 PowerPack - InstallShield Wizard","License Agreement","Button5")
WinWaitActive("ACDSee 5.0 PowerPack - InstallShield Wizard","Customer Information")
Send("{Tab}")
Send("{Tab}")
;如下为输入18位License
Send("XXXXXXXXXXXXXXXXXX")
;如下为单击“Next”
ControlClick("ACDSee 5.0 PowerPack - InstallShield Wizard","Customer Information","Button4")
WinWaitActive("ACDSee 5.0 PowerPack - InstallShield Wizard","Setup Type")
ControlClick("ACDSee 5.0 PowerPack - InstallShield Wizard","Setup Type","Button5")
WinWaitActive("ACDSee 5.0 PowerPack - InstallShieldWizard","Shell Integration Setup")
ControlClick("ACDSee 5.0 PowerPack - InstallShieldWizard","Shell Integration Setup","Button7")
WinWaitActive("ACDSee 5.0 PowerPack - InstallShield Wizard","Click Install to begin the installation")
ControlClick("ACDSee 5.0 PowerPack - InstallShield Wizard","Click Install to begin the installation","Button1")
WinWaitActive("ACDSee 5.0 PowerPack - InstallShield Wizard","InstallShield Wizard Completed")
ControlClick("ACDSee 5.0 PowerPack - InstallShield Wizard","InstallShield Wizard Completed","Button1")
WinWaitActive("ID_Media - Missing Components","QuickTime 6")
ControlClick("ID_Media - Missing Components","QuickTime 6","Button2")
WinWaitActive("ID_PS","GhostScript has not been detected on your system")
ControlClick("ID_PS","GhostScript has not been detected on your system","Button2")
|