Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to install an msi using python?

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

like image 309
The Learner Avatar asked Jun 28 '10 05:06

The Learner


People also ask

Should I install MSI or exe?

Rule of thumb: Unless you know what you are doing, it is recommended to use the setup.exe file whenever you have the choice between a setup.exe or an . msi file after you unpack a software installer on your system.

How do I convert exe to MSI?

Start a “Convert” > "MSI from EXE(s)" project. If Advanced Installer is not currently running, launch it by double-clicking its desktop icon or selecting it from the "Start" menu. On the application's Start Page you can choose “Convert” > “MSI from EXE(s)” project type.


1 Answers

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).

like image 179
Alex Martelli Avatar answered Oct 04 '22 20:10

Alex Martelli