Peter Caisse

Hey everyone,

I've been developing a PowerPoint Add-in in VS 2005, and it works great when I debug it from Visual Studio. I'm using a toolbar written in VBA to call my VSTO code in C#, and the code is called normally in VS. Great. However, when I close VS and install the add-in with MyAddInIstallation.msi, my VSTO add-in is never detected! The add-in is installed without any errors, and everything appears to be installed fine. I can install or uninstall the macro using "Add/Remove Programs" normally.

In looking at the registry, the only thing that changes when I run the add-in from VS is the location of the DLL file (in the new installation folder rather than behind my VS installation). None of the other settings are touched.

Thinking this was a security issue, I implemented the code sample found here to create a custom installer and give persmission for the add-in to be run:

http://weblogs.asp.net/mnissen/articles/429117.aspx

Unfortunately, this didn't work. Could anyone provide some insight into how to fix my problem

Thanks very much,

Pete


Re: Visual Studio Tools for Office Add-in works great run from VS 2005, but MyAddInIstallation doesn't work!

Christin-MSFT

It is likely an Office security issue. When you deploy from Visual Studio, we do all the work to set the Full Trust security settings for you. When you create your deployment solution, you need to either use the Publish feature in Visual Studio, or create your own Installation using the instructions in this 2-part article titled:

Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer (Part 1 of 2)

http://msdn2.microsoft.com/en-us/library/aa537173(office.11).aspx

Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer: Walkthroughs (Part 2 of 2)

http://msdn2.microsoft.com/en-us/library/aa537179(office.11).aspx






Re: Visual Studio Tools for Office Add-in works great run from VS 2005, but MyAddInIstallation doesn't work!

Peter Caisse

What do you mean when you say "use the Publish feature " I can publish the project to make it work on my machine, but will that work on other peoples' machines Do I have to create my own installation to deploy my VSTO solution on other peoples' machines