• (转)刚开始Outlook Addin的布署问题


    转自:http://weblogs.asp.net/mnissen/articles/427504.aspx

    遇到的问题:
    VSTO开发的Outlook Addin生成的默认setup工程不能正确的将插件安装到客户端,安装过程没有报错,注册表的Outlook下面的Addin也有注册。

     

    最后的解决:客户端需要满足下面几个条件:

    1.                       .NET Framework 2.0 (RC1)

    2.                       Microsoft Office 2003 w/Outlook

    3.                       Microsoft Office 2003 SP1 (or later)

    4.                       Microsoft Office 2003 Primary Interop Assemblies (O2003PIA.exe) (how-to)

    5.                       Visual Studio Tools for Office Runtime (vstor.exe) (Same version as .NET Framework!)

    6.                       Language pack for vstor (Optional)

    7.                       Registry keys for Outlook plugin (fixed by default VSTO Setup project)

    8.                       Code Access Security FullTrust grant to your assemblies

     

    相关的软件可以去Microsoft网站下载。

     

    VSTO模版中生成的setup工程中欠缺如下两个方面:

    1.              reference中缺少Microsoft.Office.Tools.Common.dll,这点可以简单的在主工程中添加reference选择相应的dll即可。

    2.              需要msi自动的实现Code Access Security(而不是在客户机安装.NET Framework 2.0 Configuration Tools然后手动配置安全策略),实现方法如下:

     

    新建一个System.Configuration.Install.Installer的继承,通过右键点击你的工程然后Add New Item | Installer Class,命名为Installer,然后在Installer.cs中写入代码如下:

    VB.Net版本的请查看:http://weblogs.asp.net/mnissen/articles/429117.aspx
    setup工程View | Custom Actioninstalluninstall中添加新的Custom Action,选择生成好的Primary Output。完工。

    详细内容可以参考http://weblogs.asp.net/mnissen

  • 相关阅读:
    SE -- IO
    SE -- 多线程
    SE -- 继承
    SE -- 面对对象
    SE -- 数组
    Modern Operating System --- Chap 5.5 Clocks
    Operating System: Three Easy Pieces --- Paging: TLB (Note)
    Operating System: Three Easy Pieces --- Process (Note)
    Some Interesting Websites and Blogs
    Implement a System Call in Kernel 3.10.56 (X86_64)
  • 原文地址:https://www.cnblogs.com/liubiqu/p/356666.html
Copyright © 2020-2023  润新知