Thanks for the fast response.

Unfortunately the registry trick did not help. I have tested with 2 Office 2013 and 1 Office 2016 installation on Windows8 systems and still get the error message.

But the information, that it works on your system helps me a lot.
Now that I know, that in principle it should work and I'm not doing something wrong, I can hopefully search the web for the error causes.
Maybe it has to do with the German Windows or Office??

Or I may ask some of the CAWT users to test it on their systems.
Did you use the ITypeLibProxy_from_path command in your test or would the following 3-liner be sufficient for testers:

package require twapi
set appId [twapi::comobj OneNote.Application] $appId -print

Paul

Am 25.01.2016 um 08:06 schrieb Ashok P. Nadkarni:

Spent some time looking into this with no clear conclusion. Some research shows that the issue may be caused by multiple Office installations after which some have been uninstalled. The closest possible solution seems to be the note below from https://github.com/varunsrin/one-py:


(Office 2013) This COM object can not automate the makepy process -
please run makepy manually for this object To work around this, run
regedit.exe, and navigate to

HKEY_CLASSES_ROOT\TypeLib{0EA692EE-BB50-4E3C-AEF0-356D91732725}
There should only be one subfolder in this class called 1.1. If you see 1.0 or any other folders, you'll need to delete them. The final hierarchy should look like this:

|- {0EA692EE-BB50-4E3C-AEF0-356D91732725}
| |- 1.1
| |-0
| | |- win32
| |- FLAGDS
| |- HELPDIR


I had the same problem on my system so I deleted the 1.0 key. (If not running Office 2013, key may be different). Then I no longer get the "Library not registered" error and $appId -print shows the available methods (Application is not one of them).

You can see if this is also an issue on your system and whether deleting the 1.0 key solves the problem.

/Ashok