Is it possible to install msi using python?

Is it possible to write a script in python that installs msi? Or is it possible to do this through any other script?

+4
source share
2 answers

You can use the obsolete os.system ('msiexec /i whatever.msi') or, better, the equivalent of subprocess subprocess.call - in any case, you can also add any additional msiexec flags or arguments you want (documentation is plentiful here ) .

+6
source

AFAIK, it is possible to use WMI in Python, so you should be able to install MSI files using the Win32_Product.Install method.

0
source

Source: https://habr.com/ru/post/1314043/


All Articles