On Sun, Sep 13, 2009 at 12:36 AM, deepak gupta <dg288_m...@yahoo.co.in>wrote:

> Well if i am not wrong you are asking abt , How to call installer file
> through Python.
>
> If i got it right then , You can directly use
> os.system("<filepath\filename> <Any Switch>")
>


I think subprocess.Popen is preferred:


p = subprocess.Popen( ['dvgrab', '-d', '1', '-I', dvfilename, '/tmp/dvg'],
 stderr=subprocess.PIPE )

out,err = p.communicate()


For silent installation , you have to pass switch,if installer supports.If
> you want intractive installation then just file name and file path is
> enough.
>
> --- On *Sat, 12/9/09, Sean DiZazzo <half.ital...@gmail.com>* wrote:
>
>
> From: Sean DiZazzo <half.ital...@gmail.com>
> Subject: Re: [BangPypers] [Pythonmac-SIG] .exe r .dmg install
> To: "sudhakar s" <ssqu...@gmail.com>
> Cc: pythonmac-...@python.org, bangpypers@python.org
> Date: Saturday, 12 September, 2009, 12:56 PM
>
> >>What i actually my query is there is a .exe file exists in some directory
> and i need to install that .exe file from my pthon script
> >>itself either by execution or an by an interactive application....
>
> >>suppose i had an application with  button labeled "install"  and when i
> press the button installation of a .exe file or .dmg file should start.
>
> ~~~~~
> Are you looking for an installer??  Here's one for windows that you can
> easily adapt to python programs.  http://www.jrsoftware.org/isinfo.php
>
> If you need a multi-platform installer, you are on your own, but it
> shouldn't be too difficult.
>
> hmm... Cant you do a bit of searching yourself?
>
> ~Sean
>
> On Fri, Sep 11, 2009 at 11:50 PM, Sean DiZazzo 
> <half.ital...@gmail.com<http://in.mc84.mail.yahoo.com/mc/compose?to=half.ital...@gmail.com>
> > wrote:
>
>> Yes.  py2exe (http://www.py2exe.org/) and py2app (
>> http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html)
>>
>> These will take a Python program and create an executable file that
>> doesn't rely on any installation of Python or the required libraries. (If
>> the package is created correctly)
>>
>> Is that what you mean?!?
>>
>> ~Sean
>>
>>   On Fri, Sep 11, 2009 at 11:39 PM, sudhakar s 
>> <ssqu...@gmail.com<http://in.mc84.mail.yahoo.com/mc/compose?to=ssqu...@gmail.com>
>> > wrote:
>>
>>>  Hi,
>>>      Can we install a .exe or .dmg file from python program itself...
>>>
>>>
>>> --
>>> With Regards,
>>> S Sudhakar.
>>>
>>> _______________________________________________
>>> Pythonmac-SIG maillist  -  
>>> pythonmac-...@python.org<http://in.mc84.mail.yahoo.com/mc/compose?to=pythonmac-...@python.org>
>>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>>>
>>>
>>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> BangPypers mailing list
> BangPypers@python.org<http://in.mc84.mail.yahoo.com/mc/compose?to=bangpyp...@python.org>
> http://mail.python.org/mailman/listinfo/bangpypers
>
>
> ------------------------------
> See the Web's breaking stories, chosen by people like you. Check out Yahoo!
> Buzz <http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/>.
>
> _______________________________________________
> BangPypers mailing list
> BangPypers@python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
>


-- 
Carl K
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to