msiexec - Programatically install Python msi application from a Python script -


how can programmatically install python msi that's on location:

x:\install\python-3.3.2.msi 

i know can use subprocess.call() or popen() that, don't know how make other parameters automatically set. make program available users, etc.

what trying run msi application python script every time run script, installs python-3.3.2.msi on machine script ran for.

now new question whether python msi installer supports silent installation. want installation to, in fact, silent, i.e. installer "knows" parameters command line call , no user interaction necessary @ all. please @ viktor kerkez's comment below , let me know if that's how too.

is possible tell necessary parameters via command line?

normally every designed msi can installed silently. given standard command line should tried out, other optional parameters maybe targetdir directory etc.

the msiexec parameters "/quiet" , "/qn" same, don't use them both.

the main problem in case admin rights. script not run admin rights, if have not done special things (like adding/changing manual manifests). if use parameter "/qb" instead of "/qn" msi should come uac. try out first, it's easiest (maybe not absolutely best) solution. not silent, unattended installation, may sufficient you. or "/qb+" final box too.

to start installation (or else requiring admin rights) scripts needs: 1) either boot strapping call .exe (like written setup.exe" requires admin rights

2) start script admin rights right mouse click or manually added shell entry right mouse/shell integration.

3) change manifest pyhton interpreter (or try compatibility flag "always require admin rights).

if tell us, way go, maybe can give more detailed hints. read me answer in following se question has things in common: install msi msiexec , c#


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -