开发者

Error deploying VSTO Office addin

I'm having some issues deploying a Visio addin.开发者_开发知识库 Running the VSTO file works on my computer, but whenever I try and move it to any other user's computer it throws an error on deployment. I thought it might be a setting I'd set in the project properties so I created an entirely new plugin project and set it to display a message box on startup. The error I'm getting is:

An error occured during customization install.

The expected element "addIn" was not found in the XML.

Error deploying VSTO Office addin


This is caused by an issue with Clickonce. I found a workaround by installing the addin using MSI. This Guide was a lot of help.

Taken from the section about registry settings for the msi installation:

It is important to note the ‘|vstolocal’ value appended to the end of the Manifest value. This informs the VSTO runtime that it is locally installed and to not invoke the ClickOnce installer.


I'm having the same issue with our Word, Excel, Outlook and PowerPoint add-in. The installation of the msi runs perfect. When starting Word for example, the Add-in itself gets 'installed' and then I receive the error. I have added |vstolocal to the registry, which is located in the HKCU tree.

The projects is a Visual Studio 2010 project, build on TFS 2008. The installation on an Office 2010 goes well, the error only occurs when Office 2007 is on the machine.

Anything else I'm overseeing?


The solution to my experience with this issue was the one given by Joeri on the 8th July - install Visual Studio 2010 Tools for Office Runtime on the target machine.


This is an issue with the version of Visio your add-in targets versus what is installed on the client machine. AddIn is an element that is new with the 2007 versions of Office. More than likely the client is running Visio 2003.


Some times the Visual Studio 2010 Tools for Office Runtime is installed on the machine but the vsto file fails to find it. In this case try if you can manually execute the installation command line.See example below (replace X with your own drive letter, path, and file name):

"c:\Program Files\Common Files\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe" /Install file:///X:/XXX/XXX.vsto 

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜