none
Outlook 2007 Addin does not work in outlook 2010, Why? RRS feed

  • Question

  • Hi,

    I have an Outlook 2007 Addin, that installs perfectly on PC with Outlook 2007.  The setup is configured to install Office 2007 PIA too.

    Now we tried to test the same installation of outlook 2010, but installation fails, without giving any specific error message.

    I am not sure of reason, can someone throw light.

    Also some questions that worries me. 

    1. Can Outlook 2007 addin works without any code change in office 2010?

    2. Will it need 2010 PIA or 2007 is enough, because addin is originally created for 2007 Outlook with .NET 4.0. 

    3. How can i create a addin and its installation (clickonce)  that would get install flawless on 2007 or 2010 outlook.

    Regards

    Tuesday, March 20, 2012 5:21 PM

Answers

  • Select the referenced PIA in your project references, set it to be embedded in the property sheet.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "JiyaDesai" <=?utf-8?B?Sml5YURlc2Fp?=> wrote in message news:3e932f1c-3eee-4f38-9a4e-50001c2d6b89...

    Hi Ken Slovak,

    "Setting the PIA's to be embedded in the addin and not deployed"   ...  Well this sounds interesting.... How can i do this ?

    Regards

    Note for al.kozlov:  Addin is simple and uses only outlook contacts and Winforms to perform some activity. Addin was originally developed and designed in .net 3.5/office 2007.   then later migrated to 4.0 by setting target framework to 4.0.  apart from that nothing else is changed nor anything specific to 2010 is used.


    Ken Slovak MVP - Outlook
    Tuesday, March 20, 2012 10:28 PM

All replies

  • Other than any differences due to the ribbon being used for Explorers in 2010, any 2007 addin should run without change or problem in 2010. I usually use 2003 PIA's to be able to support up through 2010 x86 with one addin for my shared addins, the code runs perfectly on all the supported versions.
     
    If you're failing when installing for 2010 I'd guess you're using some sort of bootstrapper check for the 2007 PIA's or for Office or Outlook 2007, or some such version specific check. If you embed the PIA's for your .NET 4 addin you should be able to run without deploying any of the PIA's at all.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "JiyaDesai" <=?utf-8?B?Sml5YURlc2Fp?=> wrote in message news:3f06d090-fd7c-43a3-9f15-a97ad32d233b...

    Hi,

    I have an Outlook 2007 Addin, that installs perfectly on PC with Outlook 2007.  The setup is configured to install Office 2007 PIA too.

    Now we tried to test the same installation of outlook 2010, but installation fails, without giving any specific error message.

    I am not sure of reason, can someone throw light.

    Also some questions that worries me. 

    1. Can Outlook 2007 addin works without any code change in office 2010?

    2. Will it need 2010 PIA or 2007 is enough, because addin is originally created for 2007 Outlook with .NET 4.0. 

    3. How can i create a addin and its installation (clickonce)  that would get install flawless on 2007 or 2010 outlook.

    Regards


    Ken Slovak MVP - Outlook
    Tuesday, March 20, 2012 5:26 PM
  • Hi, Jiya !

    Did you use form region in your add-in ?

    Try to deploy your 2007 add-in via clickonce.

    Tuesday, March 20, 2012 5:59 PM
  • Hi

    Your Para:  "If you're failing when installing for 2010 I'd guess you're using some sort of bootstrapper check for the 2007 PIA's or for Office or Outlook 2007".

    Well I am using clickonce and not Setup and Deployment, so I don;t think I can do much of Installation customization here. I just checked project publish properties,  following items are checked.

    1. .net framework 4

    2. MS Office 2007 Primary Interop Assemblies

    3. Microsoft visual Studio 2010 tools for office runtime

    Also note under the list i do have another option called MS Office 2010 Primary Interop Assemblies, but this option is "NOT checked".

    4. Download prequsites components for vendor's website  is "CHECKED"

    Regards

    Last note: I need to choose Office 2007 PIA, otherwise addin fails to run even on office 2007 PC.
    • Edited by JiyaDesai Tuesday, March 20, 2012 6:03 PM last note:
    Tuesday, March 20, 2012 6:01 PM
  • My guess is that the publication is looking for the 2007 PIA's and not finding them, or is trying to publish them over the 2010 PIA's and is getting an exception. Have you tried setting the PIA's to be embedded in the addin and not deployed?

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "JiyaDesai" <=?utf-8?B?Sml5YURlc2Fp?=> wrote in message news:ac5b9aa3-dcb6-4416-9441-8115b8dc8343...

    Hi

    Your Para:  "If you're failing when installing for 2010 I'd guess you're using some sort of bootstrapper check for the 2007 PIA's or for Office or Outlook 2007".

    Well I am using clickonce and not Setup and Deployment, so I don;t think I can do much of Installation customization here. I just checked project publish properties,  following items are checked.

    1. .net framework 4

    2. MS Office 2007 Primary Interop Assemblies

    3. Microsoft visual Studio 2010 tools for office runtime

    Also note under the list i do have another option called MS Office 2010 Primary Interop Assemblies, but this option is "NOT checked".

    4. Download prequsites components for vendor's website  is "CHECKED"

    Regards

    Last note: I need to choose Office 2007 PIA, otherwise addin fails to run even on office 2007 PC.

    Ken Slovak MVP - Outlook
    Tuesday, March 20, 2012 6:22 PM
  • Hi Ken Slovak,

    "Setting the PIA's to be embedded in the addin and not deployed"   ...  Well this sounds interesting.... How can i do this ?

    Regards

    Note for al.kozlov:  Addin is simple and uses only outlook contacts and Winforms to perform some activity. Addin was originally developed and designed in .net 3.5/office 2007.   then later migrated to 4.0 by setting target framework to 4.0.  apart from that nothing else is changed nor anything specific to 2010 is used.

    Tuesday, March 20, 2012 6:32 PM
  • Select the referenced PIA in your project references, set it to be embedded in the property sheet.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "JiyaDesai" <=?utf-8?B?Sml5YURlc2Fp?=> wrote in message news:3e932f1c-3eee-4f38-9a4e-50001c2d6b89...

    Hi Ken Slovak,

    "Setting the PIA's to be embedded in the addin and not deployed"   ...  Well this sounds interesting.... How can i do this ?

    Regards

    Note for al.kozlov:  Addin is simple and uses only outlook contacts and Winforms to perform some activity. Addin was originally developed and designed in .net 3.5/office 2007.   then later migrated to 4.0 by setting target framework to 4.0.  apart from that nothing else is changed nor anything specific to 2010 is used.


    Ken Slovak MVP - Outlook
    Tuesday, March 20, 2012 10:28 PM