I developed a minimal (without MapPoint Object Library, because it's a test) add-in for Microsoft MapPoint using Visual Studio 2010, written in C#.
With setup project I can install my add-in on some PCs that run MapPoint 2010 or 2011, but on some others installation has no effect.
That is it seems to finish successfully, but when I open MapPoint the add-in is not running; if I open Tools > COM add-ins... I find my add-in unchecked, checking it has no effect and adding it manually tells me
'C:\Path\to\myAddin.dll' is not a valid Office add-in.
Doing some tests I found out the problem is not related to a certain MapPoint version, Windows version or platform version.
Which can be the differences that lead the add-in to work on some machines and not on some others? Thanks!
Details on how I created the add-in:
- install MapPoint 2011 Europe
- launch Visual Studio 2010
- File > New > Project... > Shared add-in > give a name to the project > OK > check just Microsoft MapPoint > go on to the end
- Soluzions explorer > open Connect.cs and write the code
- build all projects in the solution (with MapPoint turned off)
- use the .msi generated by setup project to install the add-in on the target machine (where MapPoint is already installed)