I am making my first attempt at porting an Outlook VSTO AddIn originally targeted to 2003/2007 via VSTO SE to 2007/2010 (VSTO 3), which is of course requiring changing my deployment strategy to ClickOnce via VS 2008. At this point I am simply trying to build
a deployment which is usable from a ZIP file and no update support; just the bare basics of my app.
I build and publish the app to a local directory. I have to add a couple of non-managed DLLs, so I add them to the deployment_dir\Application Files\App_VersionNum directory with a .deploy extension, remove the myappname.vsto file from this directory, load
the AddIn's deployment_dir\Application Files\App_VersionNum\myappname.dll.manifest file in MageUI and repopulate the file list. I save the manifest and re-sign it (at this point with just a test cert). Of possible note is the fact that MageUI complains about
there not being an entry point; I simply tell it that that is acceptable on saving.
I then open the deployment_dir\myapp.vsto manifest file from in MageUI, change the Deployment Options to Application Type: Install Locally and uncheck Include Start Location. I select the application manifest I changed above (deployment_dir\Application Files\App_VersionNum\myappname.dll.manifest),
save and re-sign with the same test cert.
I zip up the contents of the deployment_dir and send it to a Windows 7 system with Outlook 2010.
I unzip the file and double-click on the .vsto file, at which point it beings to install and then I get the following exception:
From: file:///C:/Users/****/Downloads/****** for Microsoft Outlook 2007-2010/****** for Microsoft Outlook 2007-2010.vsto
************** Exception Text **************
System.InvalidOperationException: The method you call cannot work on installed applications.
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)
Searching for this error yielded only a single topic here which had no real explanation or replies. Hopefully this is something simple which eludes me completely.
Thanks for your help!Read more...