From: Werner F. B. <wer...@fr...> - 2005-06-11 07:19:27
|
Hi Michael, Did you see this sample in py2exe using Inno? # A setup script showing how to extend py2exe. # # In this case, the py2exe command is subclassed to create an installation # script for InnoSetup, which can be compiled with the InnoSetup compiler # to a single file windows installer. # # By default, the installer will be created as dist\Output\setup.exe. It is in samples/extending/setup.py See you Werner Drumheller, Michael wrote: > I am trying out py2exe for building a com server. I am wondering if > there is a quick way to make an installer for the resulting "dist" directory. > > My setup.py file looks like this: > > from distutils.core import setup > import py2exe > setup(name="FooCOM", > <...snip name, email, etc...> > packages=['Foo'], > com_server=["Foo.FooCOM"]) > > I am invoking it as: "python setup.py py2exe" (No, Foo is not the real name.) > > When this runs, I get a dist directory that contains everything I need. > I was able to deliver it to a user who did not have any Python version > installed on their machine. They did a 'regsvr32 FooCOM.dll' and bang, > they were up and running from VB. (BTW the fact that this works so easily > is totally fabulous--thank you Mark Hammond and Thomas Heller!) > > The only thing is, I'd like to present a different storefront to my > users, besides making them unzip a .zip file and call regsvr32 by hand. > Is there a way to tell setup.py to create a standard "bdist_wininst"- > style installer? > > I have looked through the py2exe-users archives and found a couple of related > notes, e.g. > http://sourceforge.net/mailarchive/message.php?msg_id=10652798 > and > http://bob.pythonmac.org/ > > Would it be correct to surmise from the second link above that the > preferred way to do what I want is to first run py2exe and then use NSIS on > it? (Is there not a way to tell setup or py2exe to do this for me?) > > Thank you very much. > > Michael Drumheller > M&CT--Mathematics and Engineering Analysis > 425.865.3520 mic...@bo... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r |