0

如果通过 pywinauto 运行给出错误..

from pywinauto.application import *
commands=command+'\msiexec.exe /i "....msi"'
app=Application.Start(commands)

错误是引发 AppStartError(message) AppStartError: 无法创建进程

4

1 回答 1

0

最后commands应该有下一个表格

r'"C:\Program Files\...\some.exe" /configure'

所以,我想你的情况应该是这样的

commands=r'"%s\msiexec.exe" /i ....msi' % command

(小心 msiexec.exe 之前的斜线)

但我同意@Chris Morgan,也许 pywinauto 不是 .msi 的最佳方式

于 2012-11-08T08:35:40.113 回答