Hi
Let us check how a common COM-Addin works?
When we install a COM Addin, it will set in two places in the registry.
1.register the COM Information(regsvr32)
2.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\<addin classname>
or
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\Word\Addins\<addin classname>
Commonly this information will be cleared by the installer of Word Addin(
when we create a word addin in vs.net, it will create an addin setup
project automatically).
That is to say for a common addin which did not interactive with
normal.dot, all is OK.
But if we changed information in normal.dot, the addin setup project did
not know how to remove the information in the normal.dot, because commonly
it is just a special .NET class library it have no idea to the structure of
normal.dot, and it is not its job to do that. Since the normal.dot's
structure is not public, only winword.exe know how to do that, so it is the
winword's job to do the clear job. And the Com-addin is mainly interactive
with Word, the OnDisconnection and similar job should be called inside the
word, and even if hypothetically we can call the OnDisconnection outside
the winword, but the code inside the method that clear the toolbar
information still need winword's help, because that is the Word's Object
Modal. Just as if we wants to automation Word to do some job, we must
installed/lauched word.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.