Search code examples
c#excelvstoms-officeribbon

A second Excel Addin (Ribbon) installation appears when I open Excel, why?


I have made an Excel Add in (Ribbon).

When i run the .vsto and install it, i've one installation under Programs in Windows.

But, when I open my Excel program, another installation appears in the Programs-list.

Why is that and it shouldn't be like that right?

Update: I notice in Application I have set Target framework: ".NET Framework 4 Client Profile" and in Publish - Prerequisites it adds a Microsoft .NET Framework 4 Client Profile(x86 and x64), has that anything to do with it?


Solution

  • This can happen when you install the VSTO on your development computer. This is because when debugging the VSTO it will get installed though it won't show in the Programs & Features list. The VSTO will remain installed even after debugging is stopped. Even when performing a proper installation, remnants of the debugged VSTO will remain in the registry.

    I've found the best way to work around this (though not ideal) is to manually remove the registry key at this location before performing a proper installation:

    HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\[YOUR VSTO PROJECT NAME]