Installation on Outlook 2003 and Outlook XP

  • Thread starter Thread starter cookiesncreamychoc
  • Start date Start date
C

cookiesncreamychoc

Hi Ppl,

I have an add-in that adds a button to the toolbar, etc.
It installs and works seamlessly for Outlook 2003 but is nowhere to be
seen for Outlook XP.
It was developed using VS 2005 and Outlook 2003.
Is there a way to get around this other than creating seperate versions
of Add-in for Outlook 2003 and XP??

Thanx
 
If you used Visual Tools for Office (VSTO) to build your add-in that is
Outlook 2003 only. If you didn't use VSTO and you have a "plain" .NET add-in
then check to see if the v.10.0.4504.0 Outlook Primary Interop Assembly is
registered on the XP/2002 machine. Also, if your add-in tries to call 11.0
(Outlook 2003) properties or methods while running against Outlook 2002 it
will throw exceptions so you'll either need to catch those or, better yet,
identify the Outlook version you're running against and don't make calls
that the COM object can't accept.
 
I'm using a "plain" .NET add-in and I recreated the add-in with the
10.0 library.
The add-in works on certain machines but doesnt work on others.
All machines that have VS 2003 or higher installed have no issues with
the addin with Outlook XP or Outlook 2003.

With machines that do not have VS installed (just .net Framework 2.0),
I cannot get the add-in to load.
The LoadBehaviour in registry changes from 3 to 2 on opening outlook
after installing the add-in. I have checked the registry keys and they
seem to be fine.

Another thing, I could not get the .NET add-in to install on my machine
so I followed the Approach 2 in the article -
http://www.shahine.com/omar/PermaLink,guid,ee43e226-a1e9-4077-b20c-b70602b93ea3.aspx
and everything was fine.

I ran the Dependency Walker on one of the machines that the add-in
would not work on and got the following warning for MPR.DLL.
Warning: At least one module has an unresolved import due to a missing
export function in a delay-load dependent module.
The machine runs Office XP Standard on Windows XP Professional.

I have treid installing with both "Just Me" and "Everyone" options
without success.
I cannot see the Microsoft .NET Framework 2.0 Configurations under
Administrative Tools on either of the machines that have only .NET
Framewrok 2 (not VS) installed.
So if permissions are an issue, I don't know how to resolve it.

The OnConnection Code is as follows:
ApplicationObject = CType(application, Outlook.Application)
addInInstance = addInInst
If connectMode <> 1 Then
OnStartupComplete(custom)
End If

The OnStartupComplete:
cInspector = ApplicationObject.Inspectors
Dim outlookNS As [NameSpace] =
ApplicationObject.GetNamespace("MAPI")
Dim fCalendar As MAPIFolder =
outlookNS.GetDefaultFolder(OlDefaultFolders.olFolderCalendar)
oCalendarItem = fCalendar.Items
Dim fDeleted As MAPIFolder =
outlookNS.GetDefaultFolder(OlDefaultFolders.olFolderDeletedItems)
oDeletedItem = fDeleted.Items

What can I check, recheck, add, modify, try......plzzzzz???

Thanx
 
Back
Top