-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frozen environment and win32com.server.register.RegisterServer() #868
Comments
Hi In Python 2.7, I used py2exe and it worked nicely.
I am trying to bring that to 3.7 now, using https://github.com/albertosottile/py2exe and pywin225, but I am facing an issue similar to what you described above. I opened an issue in the py2exe github https://github.com/albertosottile/py2exe/issues/24 and I am doing some investigation. What I found out so far is that in the same win32com.server.register.RegisterServer() function that you mention, this will register the COM, when the exe is executed
and the generated COM has the following local path:
The problem is that when the VBA client tries to create an object to use COM´s public methods:
it actually tries to register the COM again As I said it worked fine with pywin32 + py2exe in Python 2.7. Did you find a way to deploy, freeze and distribute COMs in Python 3.7? |
Linked issue is now py2exe/py2exe#24 . Which was closed for being stale w/o resolution. |
Hi, py2exe/py2exe#217 might be related to this. |
Hi,
I'm working on an Excel COM add-in with Python 3.3 / pywin32 v219. Everything works fine, except when I'm trying to cx_Freeze my app to distribute it.
The RegisterServer function doesn't create all requested keys in the windows registery.
You will find below a diff for my HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{C5482ECA-F559-45A0-B078-B2036E6F011A} key.
When I create thoses registry keys by hand, my add-in registers in Excel.
Further researches in the register process shows me that the frozen case is implemented in win32com.server.register.RegisterServer(), but I don't know if cx_Freeze provides all requested env vars.
As I'm a new Python user, maybe I miss something with cx_freeze (need to provide more elements to make pywin32 works in frozen env ?), or maybe cx_freeze is not the best tool to freeze my pywin32 app ?
Hope to read you soon,
Best regards,
Jonathan
Reported by: jbesanceney
Original Ticket: pywin32/feature-requests/109
The text was updated successfully, but these errors were encountered: