使用Clickonce无需安装VSTO [英] Install VSTO WITHOUT using Clickonce

查看:178
本文介绍了使用Clickonce无需安装VSTO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建了我的第一个VSTO Excel加载项。我正在尝试找到一种在最终用户计算机上轻松安装加载项的方法。

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.

如果我复制.dll并尝试从.dll中添加它。 Excel中的COM加载项管理器,我收到此错误:

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不是有效的Office加载项。 / p>

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

如果使用发布向导,它不会为我提供选择在客户端PC上安装文件位置的选项。而是使用安装文件的路径。

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.

那么,如何在不使用发布向导的情况下安装VSTO加载项(又名clickonce)?

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

推荐答案

您应该使用 Visual Studio安装项目,然后添加您的vsto项目输出。 请参阅此部署演练指南有关使用VSTO 4.0的信息。

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

这篇关于使用Clickonce无需安装VSTO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆