手动安装我的单词加载项VSTO(功能区)?用C#构建 [英] install manually my word add-in VSTO (Ribbon)? built with c#

查看:157
本文介绍了手动安装我的单词加载项VSTO(功能区)?用C#构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以手动安装我的单词加载项?
Visual Studio正在为Word加载项准备安装文件,它的工作很棒,但是我想构建更复杂的安装文件。如果我知道如何手动进行安装,那么构建自己的安装程序将非常容易。

解决方案

确定可以。

p>

如果使用Visual Studio 2013,则有两个常用选项来部署外接程序。
一种方法是使用发布,也称为Click-Once,基本上可以完成所有繁琐的工作,并留下可执行文件,只需双击该可执行文件即可将其部署到目标计算机上。 / p>



另一种方法是使用InstallShield。
转到文件>添加>新建项目>其他项目类型>设置和部署> Installshield ...



您很可能没有安装shield,因此,一旦您尝试选择该项目,就会弹出一个网页,要求您(快速免费)注册以下载并安装Install-Shield限量版-这样做非常快。



完成后,可以将安装项目添加到解决方案中。
现在这部分非常易于使用,可让您根据自己的喜好构建自定义安装。
请注意,他们所谓的免费限量版为您提供了很多功能,因此对于轻量级单词插件来说应该足够了。



现在,将重点放在Word Addin上,安装的整个想法是将大约4个注册表值放入已部署的计算机中,以指向您编译的dll,并对其进行描述。



您可以按照Microsoft部署外接程序的分步指南找到所需的所有信息。它非常有趣和简单。



https ://msdn.microsoft.com/zh-cn/library/ff937654.aspx



祝你好运!


Is it possible to manually install my word add-in? Visual Studio is preparing an installation file for word add-in and it worked great but i want to build more complex installation file. if i knew how to do it manually it would be very easy to build my own installer.

解决方案

Sure its possible.

If you use Visual Studio 2013, you have two common options to deploy your addin. One is to use publishing, also known as, Click-Once, this basically does all the dirty work for you, and leaves you with an executable that helps you deploy it on your target machines by simply double clicking it.

The other method is to use the InstallShield. Go to File > Add > New Project > Other Project Types > Setup and Deployment > Installshield ...

You most likely do not have install shield installed, so once you try to choose that project a webpage will pop up, asking you to register (quickly and freely) to download and install Install-Shield limited edition - do it, its quite fast.

When its done, you may add a setup project to your solution. now this part is very user-friendly, and allows you to build a custom install to your liking. Notice that the free "limited edition" as they call it, gives you quite a lot of features, so it should be enough for light weight word addin.

Now, placing the focus on the Word Addin, the whole idea of the install is to place about 4 registry values into the deployed machine to point to the dll you compiled, and describe it.

You can find all the information you need by following microsoft's step-by-step guide on deploying an addin. its very fun and simple. really!

https://msdn.microsoft.com/en-us/library/ff937654.aspx

Good Luck !

这篇关于手动安装我的单词加载项VSTO(功能区)?用C#构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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