-shawn
> I am working on a project that requires python to be installed on a
large
> number of windows servers and was wondering if anyone has found a
method
> to do this. I found the article from 2003, but nobody ever stated
that
> they have found an option for this.
I'm not quite clear whether you're asking this question from a Python
point-of-view (eg running Python from a shared drive) or from a Windows
point-of-view.
If the former then perhaps have a look at the Moveable Python project:
http://www.voidspace.org.uk/python/movpy/
I admittedly haven't tried it, but since it's designed to run off memory
sticks etc. I imagine running from a shared drive shouldn't be too
difficult.
There are (commercial) products such as LanDesk which facilitate the
latter, and in any case the Python installation doesn't do anything
especially perverse. If you did want to install on each machine,
perhaps you could get some advice from the Moveable Python people.
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Thanks for you input. I'm looking at it from the Windows perspective
of needing to push a python interpreter out to multiple machines. I'll
check out Moveable Python as you suggested.
thanks
-shawn
Larry Bates
You can use WMI to install an Msi installer on a remote machine.
The Win32_Product class has an Install method:
import win32com.client
wmi=win32com.client.gencache.EnsureDispatch('wbemscripting.swbemlocator',0)
s=wmi.ConnectServer('servername')
p=s.Get('win32_product')
inparams=p.Methods_('Install').InParameters
inparams.Properties_('PackageLocation').Value=r'\\someserver\someshare\python-2.4.2.msi'
inparams.Properties_('AllUsers').Value=True
outparams=p.ExecMethod_('Install',inparams)
print outparams.Properties_('ReturnValue') ## zero on success
Roger
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
-shawn