我正在尝试使用python的pywinauto模块自动执行安装文件(.exe文件)。安装向导启动后,未单击完成步骤的下一步按钮,这里我使用了高级文本3安装向导,有人可以帮我吗?
import os
from pywinauto.application import Application
print("Starting installation ...")
app = Application()
fsv = app.start(r"C:\Users\lenovo\Downloads\Sublime Text Build 3176 x64 Setup.exe")
fsv.InstallDialog.NextButton.wait('ready',timeout=10).click_input( //I'm having error on this line)
#fsv.InstallDialog.IAgreeRadioButton.Wait('ready', timeout=30).ClickInput()
fsv.InstallDialog.Edit.Wait('ready', timeout=30).type_keys(os.getcwd() + "\\Sublime", with_spaces=True)
fsv.InstallDialog.InstallButton.Wait('ready', timeout=30).ClickInput()
#fsv.InstallDialog.FinishButton.Wait('ready', timeout=30).ClickInput()
fsv.InstallDialog.Next.wait('ready',timeout=60).click_input()
fsv.InstallDialog.Install.wait('ready',timeout=60).click_input()
fsv.InstallDialog.Finish.wait('ready',timeout=60).click_input()