Install VSTO WITHOUT using Clickonce

[亡魂溺海] 提交于 2019-12-22 04:13:18

问题


I just created my first VSTO Add-In for Excel. I'm trying to find a way to install the add-in on the end users machine easily.

If I copy the the .dll and try to add it from the COM Add-Ins manager in Excel I get this error:

<ProjectName>.dll is not a valid Office Add-in.

If I use the publish wizard, it does not give me an option to select where to install the files on the client PC. Instead, it uses the path to the installation files.

So, how can I install my VSTO add-in without using the publish wizard (AKA clickonce)?


回答1:


You should be using Visual Studio Setup Project and add your vsto project output. See this deployment walkthrough guide on using VSTO 4.0.




回答2:


Visual Studio Setup Project overwrites the registry keys with its own. I used Installshield which worked perfectly fine.



来源:https://stackoverflow.com/questions/9217368/install-vsto-without-using-clickonce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!