是否可以使用python安装msi? [英] Is it possible to install an msi using python?

查看:45
本文介绍了是否可以使用python安装msi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以用python编写安装msi的脚本?或者是否可以通过任何其他脚本来实现?

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

推荐答案

您可以使用过时的 os.system('msiexec/i nothing.msi'),或者更好的是 subprocess 等价的 subprocess.call -- 无论哪种情况,您都可以还可以添加您想要的任何进一步的 msiexec 标志或参数(大量文档 此处).

You can use the antiquated os.system('msiexec /i whatever.msi'), or, better, the subprocess equivalent subprocess.call -- in either case, you can also add whatever further msiexec flags or arguments you desire (documentation in abundance here).

这篇关于是否可以使用python安装msi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆