[BangPypers] [Pythonmac-SIG] .exe r .dmg install

Carl Karsten carl at personnelware.com
Mon Sep 14 01:37:29 CEST 2009


On Sun, Sep 13, 2009 at 12:36 AM, deepak gupta <dg288_mits at 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.italian at gmail.com>* wrote:
>
>
> From: Sean DiZazzo <half.italian at gmail.com>
> Subject: Re: [BangPypers] [Pythonmac-SIG] .exe r .dmg install
> To: "sudhakar s" <ssquery at gmail.com>
> Cc: pythonmac-sig at python.org, bangpypers at 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.italian at gmail.com<http://in.mc84.mail.yahoo.com/mc/compose?to=half.italian@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 <ssquery at gmail.com<http://in.mc84.mail.yahoo.com/mc/compose?to=ssquery@gmail.com>
>> > wrote:
>>
>>>  Hi,
>>>      Can we install a .exe or .dmg file from python program itself...
>>>
>>>
>>> --
>>> With Regards,
>>> S Sudhakar.
>>>
>>> _______________________________________________
>>> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org<http://in.mc84.mail.yahoo.com/mc/compose?to=Pythonmac-SIG@python.org>
>>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>>>
>>>
>>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org<http://in.mc84.mail.yahoo.com/mc/compose?to=BangPypers@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 at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
>


-- 
Carl K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20090913/a6813b20/attachment-0001.htm>


More information about the BangPypers mailing list