psartor

I am using vs 2005. I created an outlook addin soloution. I cut and pasted an example from the MSDN examples. I compiled with no errors or warnings. I built the setup project without any errors. I execute the setup.exe and it executes with no errors. I stop outlook and restart it. The addin should add 2 buttons to a new button bar within outlook. Nothing shows up. If I shut down outlook and debug the addin from vs, outlook executes and the addin loads. Once this happens, I can shut down outlook and vs and then restart outlook and the addin executes as coded.

What am I missing in the deployment

What do I not understand about addin deployments

Thanks,

Patrick



Re: Visual Studio Tools for Office deployment of simple outlook addin????

bobchauvin

Patrick,

Are you saying you cannot run the addin if vs is running Is this an Outlook 03 or 07 client Is this VSTO or VSTO_SE

Search through this blog for Outlook and you will find tons of info. One of the most common issues is security.






Re: Visual Studio Tools for Office deployment of simple outlook addin????

psartor

1) The addin will not execute until I debug it once from VS 2005. After debuging once from VS 2005 it will execute with out VS 2005 running.

2) It is Outlook 2003 SP2.

3) I believe it is VSTO. I did not have to download anything to the Outlook addin templates.

I will look through the blog.

Thanks!!

Patrick





Re: Visual Studio Tools for Office deployment of simple outlook addin????

Andrew Cherry [MSFT]

Hi Patrick -

The process of debugging the Add-in from Visual Studio should result in the "local" copy of the add-in being installed and enabled, ie, the copy that was just built in Visual Studio in your project directory. The CASPOL would also be properly set by Visual Studio.

In all likelihood, the solution continues to run because you did not execute the Build/Clean task, which should remove those entries.

I would suggest reexamining your setup logic -- there's a recently updated guide to deployment as a sticky at the top of this forum. Without more information on the failure I can't be sure, but the two things I would suggest checkin are:

1) CASPOL. It's probably the most likely culprit.

2) The Registry. Settings may not be being written.

Looking at the COM Add-ins dialog should give you some idea if Outlook is aware of the add-in's presence.

Hope this helps,

Andrew






Re: Visual Studio Tools for Office deployment of simple outlook addin????

psartor

Thanks for the info Andrew. First off I verified that I am not using VSTO SE. It is definately a security problem. I used the .net 2.0 Framework Configuration tool to create a new code group and then I imported the signed dll. It worked then.

Now the question is how do I get this to deploy corrrectly as described in the 2 part article:

Deploying Visual Studio 2005 Tools for Office Second Edition Solutions Using Windows Installer.





Re: Visual Studio Tools for Office deployment of simple outlook addin????

psartor

Andrew,

I created a setup project like the article "Deploying Visual Studio 2005 toops for Office Second Edition Solutions Using Windows Installer: Walkthroughs (Part 2 of 2)" When I execute the setup.exe on the users pc, it completes withou errors.

When outlook is started, the addin does not execute. Outlook is aware of the Addin. When I go to Tools >> Options >> Other Tab >> Advanced Options Button >> COM Adins Button, Outlook displays the name of the addin but 1) it is not checked and 2) it is pointing to c:\program files\common Files\Microsoft Shared\VSTO. The install does not place the assembly in this folder. The folder does not exist on the users machine.

Thanks,

Patrick





Re: Visual Studio Tools for Office deployment of simple outlook addin????

bobchauvin

Check out this approach to have the setup project use an installer.vb class perform the policy setup. I tried the SetSecurity project approach and couldn't get it to work, but this works fine.

' Code Access Security configuring installer VB.NET version by Bob_Chauvin@yahoo.com
' Based on C# version by Mads Nissen 2005:
'http://weblogs.asp.net/mnissen/articles/427490.aspx
' Other useful CAS related Articles
' http://blogs.msdn.com/chrsmith/default.aspx




Re: Visual Studio Tools for Office deployment of simple outlook addin????

psartor

Thanks Bob I will give it a try.

Patrick





Re: Visual Studio Tools for Office deployment of simple outlook addin????

Andrew Cherry [MSFT]

Hi Patrick -

The fact that you're missing C:\Program Files\Common Files\Microsoft Shared\VSTO on your client machine makes me wonder -- does your setup properly prerequisite the VSTO Runtime It sounds as if your registry entries (for VSTO 2005) are being written properly; however, if the client machine is missing C:\Program Files\Common Files\Microsoft Shared\VSTO\AddinLoader.dll, then the Runtime itself was likely not installed, or at least not installed properly.

Andrew






Re: Visual Studio Tools for Office deployment of simple outlook addin????

psartor

The ....\vsto folder is on my development PC but not the PC used for testing. There is not an option displayed to choose the VSTO Runtime as a prerequisite when I click on the prerequisites button in the setup project. If I could figure out how to post a pic in this forum I would show you what I see.

Something I may have completely misunderstood: ---> "Do I need to install the VSTO runtime on the test PC All it has is the .net .2.0 framework redistributable." If so, where do I download the install from

As you can tell I am completely new to the whole VSTO concept.

Thanks,

Patrick





Re: Visual Studio Tools for Office deployment of simple outlook addin????

psartor

Andrew,

I just installed the MS VSTO 2005 runtime located in C:\Program Files\Common Files\Microsoft Shared\VSTO\8.0\Microsoft Visual Studio 2005 Tools for Office Runtime and would believe it all worked!!!!

Now I just need to some how get that intall as a prerequisite for my setup and I am good to go.

Patrick





Re: Visual Studio Tools for Office deployment of simple outlook addin????

Andrew Cherry [MSFT]

Hi Patrick -

I'm glad the issue was identified.

I'll refer you to a coworker's much better written thread on prerequisites:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1888398&SiteID=1

Hopefully, this should solve your issue.

Thanks for choosing VSTO!

Andrew