Feed
Google+
Contact
XING
LinkedIn
Twitter
ICQ
meebo.com

Office XP - deploy add-in - how to register the Extensibility.dll

by Roland Schumacher alias GENiALi 28. November 2008 -- 466 words  -- 1 mal gelesen

Who finds suched. For me, it took very, very long time.

I have an Office XP add-in that must be installed on different systems with different configurations. The interface must have an add-in for Office XP/2002 Extensibility. IDTExtensibility2 implement. It is defined in the Extensibilty.dll.

On a XP SP2 with Office XP/2002 without SP the DLL is not registered but that is not in the GAC.

On the Entwicklungsclient I of course have the DLL. So, I take the dll, copy it to the target system and try to register the part with RegAsm.exe. This leads to an error message in this form.

RegAsm: error RA0000: could not load file or assembly ' extensibility, version 7.0.3300.0 =, culture = neutral, PublicKeyToken = b03f5f7f11d50a3a' or one of

The part will simply not in the GAC.

How am I now proceed to bring the add-in on a fresh patch system at the start.

  1. To make a Setup.
  2. I'm only because I don't know what everything in the registry must be setup.
    The primary output is provided at tab on vsdrpCOM.
    image
  3. The dependencies exactly the same.
  4. If I exclude the Office XP/2002 PIA dependencies from the Setup and they therefore are not registered, the add-in doesn't run any more. But actually that should Office XP/2002 PIA's Yes who has installation Office XP/2002 PIA's be been registered.
    image
  5. When you are at it, you can import even three registry key.
  6. For each Office program has the an add-in a key.

    Windows Registry Editor version 5.00

    [HKEY_CURRENT_USER\Software\Microsoft\Office\ Word settings\username\addins\ namespace.namespace]
    "Description" = "Bschreibung"
    "FriendlyName" = "display name of the Office AddIns"
    "LoadBehavior" = dword: 00000003

    The marked text parts must be replaced then appropriately.

  7. The add-in has a very simple code.

  8. using System;
    using System.text;
    using System.Reflection;
    using extensibility;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;
    
    
    namespace LAG.WordPlus.OfficeAddIns. Word2002 {public class Word2002: object, extensibility. IDTExtensibility2 {# region IDTExtensibility2 members public void OnAddInsUpdate (ref array custom) {} public void OnBeginShutdown (ref array custom) {} public void OnConnection(object_Application,_ext_ConnectMode_ConnectMode,_object_AddInInst,_ref_Array_custom) {MessageBox.Show("OnConnection_--_Hallo_:-)");}}} } public void OnDisconnection (ext_DisconnectMode RemoveMode, ref array custom) {MessageBox.Show("OnDisconnection_--_ByBy_:-)");} } public void OnStartupComplete (ref array custom) {MessageBox.Show("OnStartupComplete_--_TippTopp_:-)");} {{} # endregion}}
  9. Then we procured following VS2005 KB908002 ENU x86.EXE fix.
  10. The topic of KB not very interested in. There in it there is a particular MSI package.
  11. Run the EXE.
  12. In the folder c:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\KB908002 you will now find the file extensibilityMSM.msi. And that is worth to this problem of gold. I have found unfortunately no other way how to get to the MSI.
  13. On the target system is now leads the extensibilityMSM.msi and then your own setup.

Then a dialog should appear which looks.

image

There are still 1000 other reasons.

-Are versions the necessary .NET installed?
-Are Office CP/2002 PIA's installed?

Anyway, I now finally found a way how I do run the add-in.

Tags:

Kommentare sind geschlossen

Statistik

Gesamte Posts: 1025
Dieses Jahr: 7
Diesen Monat: 1
Diese Woche: 0
Kommentare: 929
Total Bewertungen: 91
Ø Bewertung: 4,42
Meisten Kommentare
Google+ ... (28)
Beste Ø Bewertung
Tastaturlayout von Visual Stud ... (5)
Meiste Bewertungen
Windows 7 und die ersten Erfah ... (5)

Buttons

Stop Spam Harvesters, Join Project Honey Pot Benutzerprofil von GENiALi connection speed test network connection Bloggeramt.de Slug.ch Blog Verzeichnis und Blog Webkatalog Schumacher Roland Seitwert Valid XHTML 1.0 Transitional

writing