问题描述
我在Visual Studio 2013中创建了c#Outlook外接程序.
I have c# outlook addin created in visual studio 2013.
它也具有Windows窗体.
It has windows forms also.
我为生成msi文件而生气,请给我任何更简单的解决方案/步骤吗?
I am getting mad on generating msi file, any easier solution/steps for me, please ?
主要告诉我,在完成该过程之后,我在哪里可以找到最终的MSI文件(例如bin/release文件夹)?
Mainly tell me, after completing the process, where do I find the final MSI file (like bin/release folder) ?
我安装了此文件- https://visualstudiogallery.msdn.microsoft. com/9abe329c-9bba-44a1-be59-0fbf6151054d
以及installshield限量版安装程序.
as well as installshield limited edition installer.
我能够构建它并从disks文件夹运行安装文件(.exe),并且正在安装但在Outlook中未显示任何内容.
I was able to build it and ran the installation file(.exe) from disks folder and it is installing but not showing anything in the outlook.
推荐答案
看看在MSDN中部署Office解决方案部分.它描述了用于深度部署Office解决方案的两个可能的选项:
Take a look at the Deploying an Office Solution section in MSDN. It describes two possible options for deploying your Office solution in depth:
- Deploying an Office Solution by Using Windows Installer
- Deploying an Office Solution by Using ClickOnce
由您决定选择哪种方式.
It is up to you which way is to choose.
在Office应用程序中看不到加载项的原因有多种.
There are multiple reasons why you don't see your add-in in Office applications.
首先,请确保您已完成前面提到的文章中描述的所有步骤.然后,我建议检查COM加载项所需的Windows注册表项,请参见注册表有关应用程序级外接程序的条目,以获取更多信息.
First of all, make sure that you did all the steps described in the previously mentioned articles. Then I'd suggest checking the required windows registry keys for COM add-ins, see Registry Entries for Application-Level Add-Ins for more information.
Microsoft Office应用程序可以禁用行为异常的加载项.如果某个应用程序未加载您的加载项,则该应用程序可能已硬禁用或软禁用了您的加载项.
Microsoft Office applications can disable add-ins that behave unexpectedly. If an application does not load your add-in, the application might have hard disabled or soft disabled your add-in.
当外接程序导致应用程序意外关闭时,可能会发生硬禁用.如果在加载项中的Startup事件处理程序执行时停止调试器,则它也可能在开发计算机上发生.
Hard disabling can occur when an add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your add-in is executing.
当加载项产生不会导致应用程序意外关闭的错误时,可能会发生软件禁用.例如,如果应用程序在执行启动事件处理程序时抛出未处理的异常,则可能会软禁用该加载项.
Soft disabling can occur when an add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable an add-in if it throws an unhandled exception while the Startup event handler is executing.
您可以在如何:重新启用添加项中详细了解-in已禁用在MSDN中的文章.
You can read more about that in the How to: Re-enable an Add-in That Has Been Disabled article in MSDN.
最后,您还可以在Outlook中签出信任中心"设置.宏安全性设置也可以应用于加载项.可能需要使用数字签名等在外接程序上签名.
Finally, you may also check out the Trust Center settings in Outlook. The Macro Security settings can be applied to add-ins as well. May be it is required to sign the add-in with a digial signature and etc.
这篇关于在VS 2013中从C#Outlook Addin创建MSI文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!