用于使用 Visual Studio 安装程序构建加载项的注册表项



我能够使用Visual Studio Installer(一个扩展)为我的C# Outlook插件创建安装的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属性为targetdir。

因此,即使这指向正确的安装目录和插件也在 Outlook 中加载。但它给出了错误,因为起初我尝试过

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

但是abc.vst不存在(我在将项目输出添加到应用程序文件夹时选择了"主要输出"),所以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

请确保已完成 MSDN 中的使用 Windows 安装程序部署 Office 解决方案一文中所述的所有步骤。通常,您可能还会发现部署 Office 解决方案部分很有帮助。

相关内容

最新更新