使用Visual Studio安装程序构建加载项的注册表项 [英] Registry keys for building addin using visual studio installer

查看:117
本文介绍了使用Visual Studio安装程序构建加载项的注册表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够使用Visual Studio安装程序-扩展程序为c#Outlook Addin创建安装的MSI.

这是我使用的链接- https://msdn.microsoft.com /en-us/library/cc766795.aspx .

我使用上面的链接成功创建了插件,但由于上面的链接没有讨论注册表项,因此它在Outlook中未显示.

因此,我基于链接添加了注册表项- https://msdn .microsoft.com/en-us/library/cc442767.aspx

我将"installdir"更改为"targetdir",因为安装的Visual Studio已将属性设置为targetdir,如果我们使用installshield进行构建,则installdir属性将为.

因此,即使指向正确安装目录和插件的多数民众赞成也在Outlook中加载.但这给了错误,因为起初我尝试使用

file:///[TARGETDIR]abc.vsto|vstolocal  where abc is my product name.  

但是abc.vsto不存在(我在将项目输出添加到应用程序文件夹时选择了主输出"),因此Outlook抱怨这一点.

然后我尝试使用file:///[targetdir] abc.dll,这给了我错误:

Exception reading manifest from file:///path/to/setup/abc.dll:
manifest may not be valid or the file could not be opened

解决方案

确保已执行部署Office解决方案部分很有帮助.

I was able to create msi installed for my c# outlook addin using visual studio installer - an extension.

This is the link I used - https://msdn.microsoft.com/en-us/library/cc766795.aspx.

I successfully created addin using the above link but its not showing up in outlook because the above link didnt talk about registry keys.

So, I added registry keys based on the link - https://msdn.microsoft.com/en-us/library/cc442767.aspx

I changed "installdir" to "targetdir" because visual studio installed had set the property as targetdir where installdir property is if we build using installshield.

So, even thats pointing to correct install dir and addin is loading in outlook. But it is giving error because, at first, I tried with

file:///[TARGETDIR]abc.vsto|vstolocal  where abc is my product name.  

But abc.vsto is not there ( I selected "primary output" while adding project output to application folder), so outlook complaining that.

Then I tried with file:///[targetdir]abc.dll which gave me error:

Exception reading manifest from file:///path/to/setup/abc.dll:
manifest may not be valid or the file could not be opened

解决方案

Make sure that you did all the steps described in the Deploying an Office Solution by Using Windows Installer article in MSDN. In general, you may also find the Deploying an Office Solution section helpful.

这篇关于使用Visual Studio安装程序构建加载项的注册表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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