I'm creating a plug-in for Office 2010 and need to detect on install whether the Office 2010 PIA's are installed.
I have done this for 2003 and 2007 but cannot find the Component ID's for 2010 does anyone know what they are?
thanks, Ed
I'm creating a plug-in for Office 2010 and need to detect on install whether the Office 2010 PIA's are installed.
I have done this for 2003 and 2007 but cannot find the Component ID's for 2010 does anyone know what they are?
thanks, Ed
There is no need to install PIA separately or check the version of installed PIA if you target .NET Framework 4 and above. Check this article.
Just check in your project that the reference to
Microsoft.Office.Interop.Excel
has the correct version andEmbedInteropTypes
set totrue
.Do a search for the component ID for the PIA (primary interop assembly) applicable to the component of office you need from the list below:
E.g. if you are writing a Word add-in, then you only really need to check for the PIA with the GUID {8B74A499-37F8-4DEA-B5A0-D72FC501CEFA}
From here
Microsoft have recently released the PIAs for 2010 seperately. Available here
If you need to support Office 2013, the component Ids are documented here: Office 2013 PIA component Ids