Error deploying VSTO Office addin

zeocrash picture zeocrash · Apr 28, 2010 · Viewed 20.1k times · Source

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.

deployment error

Answer

zeocrash picture zeocrash · Apr 29, 2010

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.