adxregistrator: wrong registry entries

Add-in Express™ Support Service
That's what is more important than anything else

adxregistrator: wrong registry entries
 
Pedram Khorsandy




Posts: 2
Joined: 2015-04-14
Hi,

As of yesterday I updated add-in express for Office and .NET to version 7.7.4087.2005. I noticed that registry entries for the Office add-ins are not created correctly by the adxregistrator process.

I have a solution with two add-in modules, one for Word and one for Powerpoint. Instead of writing a separate registry entry for Powerpoint and Word, the adxregistrator process creates two HKCU registry entries within Powerpoint and none within Word.

After I replaced the new AddinExpress.MSO.2005.dll with an older version the registration worked just fine.

Is there a known issue?

Thanks
Posted 14 Apr, 2015 03:37:12 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Pedram,

Thank you for pointing us to this issue. A workaround is modifying the AddinRegister and AddinUnregister methods of both modules as follows:

Before:
[ComRegisterFunctionAttribute]
public static void AddinRegister(Type t) {
    AddinExpress.MSO.ADXAddinModule.ADXRegister(t);
}

[ComUnregisterFunctionAttribute]
public static void AddinUnregister(Type t) {
    AddinExpress.MSO.ADXAddinModule.ADXUnregister(t);
}


After:
[ComRegisterFunctionAttribute]
public static void AddinRegister(Type t) {
    AddinExpress.MSO.ADXAddinModule.CurrentInstance = null;
    AddinExpress.MSO.ADXAddinModule.ADXRegister(t);
}

[ComUnregisterFunctionAttribute]
public static void AddinUnregister(Type t) {
    AddinExpress.MSO.ADXAddinModule.CurrentInstance = null;
    AddinExpress.MSO.ADXAddinModule.ADXUnregister(t);
}



Andrei Smolin
Add-in Express Team Leader
Posted 14 Apr, 2015 06:02:30 Top
bontempi




Posts: 2
Joined: 2015-04-14
Hello Andrei,

Your workaround solved the issue.

Thanks for this fast support,
Pedram
Posted 14 Apr, 2015 06:50:04 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Thank you for letting me know.


Andrei Smolin
Add-in Express Team Leader
Posted 14 Apr, 2015 07:10:42 Top