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.
- To make a Setup.
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.
- The dependencies exactly the same.
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.
- When you are at it, you can import even three registry key.
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.
- The add-in has a very simple code.
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}}
- Then we procured following VS2005 KB908002 ENU x86.EXE fix.
The topic of KB not very interested in. There in it there is a particular MSI package.
- Run the EXE.
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.
- On the target system is now leads the extensibilityMSM.msi and then your own setup.
Then a dialog should appear which looks.
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.
a41125e7-1911-4f23-b005-d337ee7d2674|0|.0
Tags: