PismoPat

We have an Outlook add-in and have been installing the 2003 interop. That was easy as it only worked with Office 2003 or later. Now that 2007 is out, the question is which to install without having users have to make the decision.

Does Microsoft have an MSI that makes that decision and installs the correct interop

If it doesn't, it should have.

Thanks,

Pat




Re: Visual Studio Tools for Office Office 2003 Interop Assemblies vs Office 2007 Interop Assemblies

Douglas H. Troy

Not yet Pat, but you can do what I've done, and simply check what version of Office is installed via the registry; at least, until we can get the correct Product Codes so AppCheck and PIACheck can be updated.

Say you wanted to check what version of Excel is installed, so you know what PIAs to use (2003 or 2007), just check

HKEY_CLASSES_ROOT\Excel.Application

Subkey \CurVer

For Office 2007 it would return Excel.Application.12

For Office 2003 it would return Excel.Application.11

Etc...

FYI - I just checked and this registry key exists under Windows Vista as well.






Re: Visual Studio Tools for Office Office 2003 Interop Assemblies vs Office 2007 Interop Assemblies

Dennis Wallentin

Douglas,

I've seen that You mentioned both AppCheck and PIACheck in some threads here. If I understand it correctly they require that the .NET Framework is installed, right Recently I spent some time to track down the ComponentID for Excel 2007 which I did publish here. Viewing Office 2007 with Orca was, hrm, interesting.






Re: Visual Studio Tools for Office Office 2003 Interop Assemblies vs Office 2007 Interop Assemblies

Douglas H. Troy

Dennis -

Thank you for the information; I too spent some time with the 2007 PIA installer digging out component IDs and Product IDs. Thank you for posting your results of the search as well (looking at the installers, as you mentioned, is an experience, to say the least).

My current "real" issue is AppCheck and the Office Product Codes ... I was rather hoping some nice MS person would post the product code list, so I can just update both programs to handle both Office 2003 and 2007.

But as a temp solution to all that mess, I implemented an installer that just checks the registry to determine what version of Office is on the machine. If 2007 is installed, we're "good to go", no further checking required, since VSTO solutions work on all flavors of that release. If 2003 is installed, I execute AppCheck, to determine if we have the correct 2003 release installed (Standard or Pro) ... Etc ...

Anyway, thank you for posting your response, I have bookmarked your site for future reference ...






Re: Visual Studio Tools for Office Office 2003 Interop Assemblies vs Office 2007 Interop Assemblies

Dennis Wallentin

Douglas,


But as a temp solution to all that mess, I implemented an installer that just checks the registry to determine what version of Office is on the machine. If 2007 is installed, we're "good to go", no further checking required, since VSTO solutions work on all flavors of that release. If 2003 is installed, I execute AppCheck, to determine if we have the correct 2003 release installed (Standard or Pro) ... Etc ...


I think that Your approach will be doable also in the long run as well


Anyway, thank you for posting your response, I have bookmarked your site for future reference ...

You're welcome and I think we all benefit from sharing knowledge in one or another way.

Let see when MSFT will give us the missing pieces of this part of the VSTO-pussle.






Re: Visual Studio Tools for Office Office 2003 Interop Assemblies vs Office 2007 Interop Assemblies

Darryn Lavery -- MSFT

Hi,

Please out check the latest deployment article which has bootstrapper packages for the 2003 and 2007 PIAs.

Thanks and regards,

Darryn Lavery [MSFT]





Re: Visual Studio Tools for Office Office 2003 Interop Assemblies vs Office 2007 Interop Assemblies

PismoPat

Hi Darryn,

Do you have a link to that article

Pat






Re: Visual Studio Tools for Office Office 2003 Interop Assemblies vs Office 2007 Interop Assemblies

CH-danman

HI Douglas

it looks nice.

Do you have implemented this with Registy search condition Or how do you have implemnted that

Can you post or send me your example pealse.

greatings

CH-danman