just for info:
overwrite COM register methods is a bit special because these methods was static. no chance to use virtual/overwrite.
to overwrite a static register method for a NO Tools Addin you need a special static method with an annotation in your addin.
something like this:
[RegisterFunction(RegisterMode.Replace)] // replace means, replace the base tools register method completly
public static void MyRegister(Type type, RegisterCall registerCall)
{
// create office registry keys
}
same for the unregister method:
[UnRegisterFunction(RegisterMode.CallBeforeAndAfter)]
public static void MyUnRegister(Type type, RegisterCall registerCall)
{
// remove office registry keys
}
overwrite COM register methods is a bit special because these methods was static. no chance to use virtual/overwrite.
to overwrite a static register method for a NO Tools Addin you need a special static method with an annotation in your addin.
something like this:
[RegisterFunction(RegisterMode.Replace)] // replace means, replace the base tools register method completly
public static void MyRegister(Type type, RegisterCall registerCall)
{
// create office registry keys
}
same for the unregister method:
[UnRegisterFunction(RegisterMode.CallBeforeAndAfter)]
public static void MyUnRegister(Type type, RegisterCall registerCall)
{
// remove office registry keys
}