VSTO 2005 and Outlook 2007?  
Author Message
LastHope





PostPosted: Visual Studio Tools for Office, VSTO 2005 and Outlook 2007? Top

Hi,
I'd like some informations...I've started to use VSTO 2005 to build my plugin for Outlook 2003 some months ago...but a few weeks ago an user told me he has successfully installed my plugin into Outlook 2007! However, he's the only case...
Do you have any clue Should they change the PIA, something else I still don't understand how this guy have been able to install (he neither...he just double-clicked the installer, and voila! :))
Please help me ;)

Bye

LastHope



Visual Studio Tools for Office39  
 
 
Andrew Whitechapel - MSFT





PostPosted: Visual Studio Tools for Office, VSTO 2005 and Outlook 2007? Top

Yes, our intention is that solutions built with VSTO 2005 for Office 2003 should just work in Office 2007. In the case of add-ins, the original installer would have installed registry settings which are used by both Office 2003 and 2007. The only difference is that when running in Office 2007, managed code will use the Office 2007 PIAs (Office redirects the binding) instead of the Office 2003 PIAs.

So, in other words, this behavior is expected - you should not have to do anything special in order to get a VSTO 2005 solution for Office 2003 to run in Office 2007.


 
 
LastHope





PostPosted: Visual Studio Tools for Office, VSTO 2005 and Outlook 2007? Top

Hi,
that's not the answer I was expecting...since Office 2007 beta is out, many users tried to install my plugin with Outlook 2007, but I have received only two messages of success..
I've already read that a VSTO plugin should work with 2007..I just'd like to know what may be a possible problem/configuration that wouldn't allow a VSTO 2005 plugin to be successfully installed in Outlook 2007
Some examples:

 
 
Andrew Whitechapel - MSFT





PostPosted: Visual Studio Tools for Office, VSTO 2005 and Outlook 2007? Top

Ah, right. The installer might be looking for the Office 2003 PIAs and not finding them - that makes sense. However, if you have already installed the add-in for Office 2003 (and therefore have the 2003 PIAs on the machine), when you later install Office 2007, the add-in should just continue to work. This is the most common scenario we expect to see.

The scenario where it will fail, therefore, is if you have an add-in built against the Office 2003 PIAs (and where the installer pre-reqs the Office 2003 PIAs) but you want to install it on a machine which doesn't have the Office 2003 PIAs.

To workaround this scenario, you could simply install the Office 2003 PIAs as part of your install for your add-in. Or you could set your pre-req logic to accept the 2007 PIAs if it is installing to a machine with only 2007 and not the 2003 PIAs installed.

Alternatively, if you know you're installing on a machine with only Office 2007, you can simply build against the Office 2007 PIAs in the first place. This is one of the reasons we're planning to ship Cypress at the same time as Office 2007 release - so that you can build add-ins that target Office 2007.


 
 
LastHope





PostPosted: Visual Studio Tools for Office, VSTO 2005 and Outlook 2007? Top

Now that's the answer I was looking for! Thanks! :D
Bye

LastHope

P.S.: BTW, Is it possible to download the Office 2007 PIA yet In this way, I'd made a check for both the prerequisites...if PIA 12 is not found, check for PIA 11...
Now that's the answer I was looking for! Thanks! :D
Bye

LastHope


 
 
Brad Smith





PostPosted: Visual Studio Tools for Office, VSTO 2005 and Outlook 2007? Top

Until recently I'd been ignoring VSTO as an option because my next version was to support OL2002 & OL2000 as well. That left me with ADX.NET as my best/only option to let me do .NET coding and support the old Office versions.

But now I'm hearing that I can likely get away with only having to support Office 2003 and Office 2007. This *may* make VSTO an option, but I'm not liking what I'm reading. Perhaps I can get some clarification on a few things:

1) I can use VSTO 2005 which targets Office 2003, but of course while my add-in will "work" in Office 2007 I can't use any of the new Office 2007 features (most specifically the new Ribbon stuff). Has anybody managed to massage a VSTO-created add-in to use the Office 2007 ribbon

2) I can use VSTO v3 (beta) to target Office 2007 and use the spiffy new features, but I'm totally screwed supporting Office 2003, right

I presume there are others working in the real world where we simply can't just support *one* Office version. What are the popular approaches I can see doubling my effort to make an Office 2003 add-in using VSTO 2005 and a whole other Office 2007 add-in using VSTO v3 (which, I'm sure, will require two separate machines since I'm sure I can't install both VSTOs at once). Any other approaches

Brad.

 
 
LastHope





PostPosted: Visual Studio Tools for Office, VSTO 2005 and Outlook 2007? Top

Ah, right. The installer might be looking for the Office 2003 PIAs and not finding them - that makes sense. However, if you have already installed the add-in for Office 2003 (and therefore have the 2003 PIAs on the machine), when you later install Office 2007, the add-in should just continue to work. This is the most common scenario we expect to see.

The scenario where it will fail, therefore, is if you have an add-in built against the Office 2003 PIAs (and where the installer pre-reqs the Office 2003 PIAs) but you want to install it on a machine which doesn't have the Office 2003 PIAs.

To workaround this scenario, you could simply install the Office 2003 PIAs as part of your install for your add-in. Or you could set your pre-req logic to accept the 2007 PIAs if it is installing to a machine with only 2007 and not the 2003 PIAs installed.

Alternatively, if you know you're installing on a machine with only Office 2007, you can simply build against the Office 2007 PIAs in the first place. This is one of the reasons we're planning to ship Cypress at the same time as Office 2007 release - so that you can build add-ins that target Office 2007.



Hi,
still having a little problem: I've bought a new computer a few weeks ago so I decided why not to try I've downloaded .NET redistributable 2.0, Outlook 2003 PIA, my plugin and Outlook 2007 (this computer HASN'T got Outlook 2003)...
So I went to try to install everything in this order...however, I cannot install the O2003PIA because...I haven't got Outlook 2003!!
Any work-around
Thank you

LastHope


 
 
chrisWhite





PostPosted: Visual Studio Tools for Office, VSTO 2005 and Outlook 2007? Top

I'm running into that same issue that LastHope is, I'd really like to be able to get around this if possible, I'd really appreciate an update or some other work around.

Thanks for your help!

 
 
Rob GLobe





PostPosted: Visual Studio Tools for Office, VSTO 2005 and Outlook 2007? Top

Installed a new PC for Office 2007.. same problem here... you can't install the PIAs for Office 2003 on a PC with just Office 2007.. can't belive that nobody on MS thought about that.. sigh...
 
 
LastHope





PostPosted: Visual Studio Tools for Office, VSTO 2005 and Outlook 2007? Top

Still haven't lost hope...but it's started to fade...:)