Thomas,

        Figured out a relatively simple way to deal with this TypeLib
issue
        regarding Win XP & Win 2000....

        1) I created a py2exe "bundle" on a Windows 2000 system...
        2) Since the Typelib issue was specific to win32com, I 
                removed all NON win32com files from the 2000 created 
                library.zip file.  And renamed the zip to
"Win2000_specific.zip".

        3) I added the following code the absolute start of the 
                application.

                import  sys
                windows_version = sys.getwindowsversion()
                if windows_version[0] ==5 and windows_version[1] <> 1:
                #    print "Windows 2000"
                #    print "before: ",sys.path
                    sys.path.insert (0, "win2000_specific.zip")
                else:
                    pass    # Windows XP

        The idea is that the zip file contains only Windows 2000
specific
        files, and since it is now at the absolute beginning of the
        sys.path the "Windows 2000 specific patches" will be found in
the
        namespace before the "Win XP" library.

        But anything that is in common will eventually reach the
standard 
        library.zip....

        The only drawback is the need to have a 2000 system to compile
the
        win32com typelibs...

                - Benjamin
                
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Heller
> Sent: Tuesday, June 21, 2005 2:37 PM
> To: python-win32@python.org
> Subject: Re: [python-win32] LsaLookupNames2
> 
> 
> "Schollnick, Benjamin" <[EMAIL PROTECTED]> writes:
> 
> > It's okay....  I just miss McMillian's installer...
> > It's unsupported, so I've moved to py2exe...  But
> > McMillian's package seemed to be better with
> > the dependency issues....  And offered a few
> > features that don't exist in py2exe... (Or at least
> > are not easily handled in py2exe...)
> >
> > On the plus side, py2exe has handled packages lately
> > that I just could not get McMillian's installer
> > to work reliably with...  Which is why I switched...
> 
> I always wondered why no one picked up McMillan and continued 
> to develop or at least maintain it - it's open source after 
> all, isn't it?
> 
> Thomas
> 
> PS: netapi32.dll is in the list of dlls to exclude in the 
> py2exe cvs version.  No date yet for a new release - but you 
> can easily insert it in the current version yourself, the 
> list is in lib/site-packages/py2exe/build_exe.py, should be 
> easy to find.
> 
> _______________________________________________
> Python-win32 mailing list
> Python-win32@python.org 
> http://mail.python.org/mailman/listinfo/python-win32
> 
_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to