[python-win32] Deploying COM
Kerry Oliphant
koliphant at qwest.net
Wed Apr 7 10:23:26 EDT 2004
Somesh,
The py2exe installation has a samples directory. Use the 'advanced' sample
for help in creating a distribution for a COM server. To register the
server you need to run a script that registers the server as explained in
Chapter 12. You can also look at the COM server example in 'advanced'.
Using 'distutils' you can create an installation package that will let you
run the registration script on installation. You could also create an exe
out of the registration script in the same py2exe setup that packages up the
COM server.
Kerry
-----Original Message-----
From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org]On Behalf Of Somesh Bartakke
Sent: Wednesday, April 07, 2004 1:36 AM
To: kno at conceptsnrec.com
Cc: python-win32 at python.org
Subject: [python-win32] Deploying COM
> Have you seen the sample chapters online for Mark and Andy's book. You
> should be able to use Chapter 12 to get you going on the COM link with VB.
> I do not have VB and so I have never actually created a GUI in VB and
linked
> it with python in this way. Chapter 20 shows you how to do it the way
that
> I described earlier. I recommend you still buy the book though.
> http://www.oreilly.com/catalog/pythonwin32/chapter/index.html
Thanx kelly,
i gone thru sample lesson on COM,
i never think that "COM should be as eazy as Mark made it thru Python"
1- ce again thanX to Mark and Python,
i wanna know how to deploye my script with py2exe ? how it will self
register when frozen with py2exe ?
for example i write script "mycom.py" which also contains self reg code.
i write setup.py with the help of Thomas Hellers py2exe pkg as following :
#setup.py started
from distutils.core import setup
import py2exe
setup(com_server=["mycom"])
i got ditro package in directory 'dist', my que is weather i wrote Right
script ? and how my COM will get register with system ? for that i have to
provide extra code ? plz guide me .
_______________________________________________
Python-win32 mailing list
Python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32
More information about the Python-win32
mailing list