Office Shared Add-ins: Issues - Part 2

November 29, 2010 by Microsoft Office  

The following issue I find to be quite an interesting one, took some digging and guessing to figure this one out - perhaps this can save someone some time.

A while ago we created some shared add-ins for office 2007 & 2003 using Visual Studio 2008, the add-ins worked great, but on some Office 2003 machines it didn't work at all. The moment the office application started, it disabled these add-ins immediately.

The reason being that Office 2003 doesn't natively support .NET (managed) based shared add-ins - for this reason (among others) Microsoft released a patch KB908002.

There is however a funny thing regarding this patch, it requires Visual Studio 2005 and Microsoft didn't include this fix in Visual Studio 2008 (and I couldn't find a 2008 specific version of the patch).

The workaround is simple though, this patch added a prerequisite to the contents of KB908002 to Visual Studio 2005, which we need to deploy to the end user machine - the prerequisite itself doesn't actually require Visual Studio.

What we need to do is to extract the prerequisite and manually add at it to the folder containing deployable prerequisites for Visual Studio 2008.

Step 1

Download the patch from http://support.microsoft.com/kb/908002.

Step 2

Extract the files from the patch e.g.

vs2005-kb908002-enu-x86 /c /t:c:\kb908002
Step 3

Extract the bootstrapper e.g.
msiexec /a C:\kb908002\bootstrapper.msi TARGETDIR=C:\kb908002\bootstrapper
Step 4

Copy the contents of
C:\kb908002\bootstrapper\SDK\BootStrapper\Packages
to
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages

Step 5

To find the prerequisite dialog:

> right click on your setup
> select properties
> click on prerequisite

You will notice an item called Shared Add-in Support Update... in the list (the one we just added), tick this item to include it as prerequisite for Office 2003 add-ins.



As soon as you run the setup, you will notice the following window:



Once we click on install, this will register/install the assemblies (like Extensibility.dll) required to run shared add-ins on Office 2003.


Leave a Comment


Phew! November 30, 2010 by Hanno

Dude, this is awesome! I thought by the end of the year I would not have any hair left... You saved me a trip to the hair doctor! Thank you so much! Keep up the good work.


    Related Posts

    Office Shared Add-ins: Issues - Part 1

    November 29, 2010