Skip to content Skip to sidebar Skip to footer

Why Genguid.exe Generated Clsid Won't Work?

I am trying to modify exceladdin.py example from pywin demos. Otherwise I can modify it, but when I replace the clsid given in example: '{C5482ECA-F559-45A0-B078-B2036E6F011A}' Wi

Solution 1:

Ok, I think that I found the answer...

python cannot be installed in "program files" folder unless you run everything as root (admin).

The python program that registers the com-service reads/writes <pythonInstallationDir>/Lib/win32com/gen-py directory. Word (or the program that uses the com service) has to be able to write(?) there as well. There exists non-human readable dictionary etc.

installing python to c:/python27 solved my problem. Now only the register program has to be run as root. Word can be run as normal user. I think in my case I messed up the dictionary by not giving enough privileges at the second time (first time I registered it correctly) and it was using the original keys.

Post a Comment for "Why Genguid.exe Generated Clsid Won't Work?"