Search code examples
pythonwindows-installerpywinauto

How to resolve this issue in Pywinauto to run .msi installer


If running through pywinauto giving error..

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

error is raise AppStartError(message) AppStartError: Could not create the process


Solution

  • finally commands should have the next form

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

    So, I suppose in your case should be something like that

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

    (be careful with slash before msiexec.exe)

    But I agree with @Chris Morgan, maybe pywinauto is not the best way for .msi