Hey guys,

Got my outlook add-in working fine, building and installing works fine on all machines, but its such a pain in the arse when i change the smallest little thing, and a total uninstall is required on all machines, and then a re-install - but it seems so confusing to work the ClickOnce method.

Can someone point me in the direction of some really handy articles anywhere, or step by step instructions on how to do it, and any common problem solvings


Re: Visual Studio Tools for Office VSTO Outlook Add-In ClickOnce Deployment!

Denis BDA

I posted on this over on my thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1245917&SiteID=1

1. Followed Mads' post on how to create an installerclass to take care of CAS policy settings. http://weblogs.asp.net/mnissen/articles/427490.aspx

2. There's a great rundown of essentially what I did to create a setup project and then publish using clickonce: http://www.codeproject.com/useritems/Outlook_Add-in.asp

3. In order to get around an issue with manifest files not being updated and thus causing my addin to not update, I followed these further instructions (step 5) http://www.codeproject.com/useritems/Outlook_Add-in_Issues.asp

4. Because I am publishing to a network share, I also ensured that I had set CasPol to fully trust the share


The only thing I'm still stuck on is how to handle disconnected machines such as mobile laptops. The add-in I built fails if I simulate the directory being unavailable or moving and the add-in no longer loads after that. Otherwise it updates quite well.

Re: Visual Studio Tools for Office VSTO Outlook Add-In ClickOnce Deployment!



it seems i'm struggling with your step 3. and in that article, particularly step 5! I have CAS and everything sorted i do believe. Its the links in the manifests i seem to be having problems with. It suggests something about manually adding the published manifest to the projecct then publishing and building - but upon build, the publish seems to disappear and so the build fails as there is no link to it!

Can anyone help me finish setting this up

Re: Visual Studio Tools for Office VSTO Outlook Add-In ClickOnce Deployment!

Denis BDA

Have you tried testing it outside of modifying the setup project yet

Basically publish your application.

Then install it using your setup project

then copy the .manifest file from your publish location and replace the one if your local installation's directory with it.

Note that this will make it run from the network.

If you can get this working, the next steps are to follow the instructions in step 5 of the article to config the setup project to do that automatically. If it's not working, it points to larger issues such as your CAS may not be configured to allow your shared directory to be accessed by the addin