Outlook 插件部署
刚刚开发了一个 Outlook 插件,但现在我正在尝试创建一个安装项目。我按照 http://www.supinfo-projects.com/ 的教程进行操作en/2006/add_in_outlook_2007_en/introduction/ ,但是当我尝试安装时发生错误(错误 1001。无法设置安全策略。--> 无法创建安全代码组“OutlookPanel”。-->系统找不到指定的文件(hresult 例外:0x80070002)
在安装的自定义操作中我有 / assemblyName="OutlookPanel" /targetDir="[TARGETDIR]\" /solutionCodeGroupName="Company.OutlookPanel" /solutionCodeGroupDescription="OutlookPanel 的代码组" / assemblyCodeGroupName="OutlookPanel" / assemblyCodeGroupDescription="OutlookPanel 的代码组" /allUsers= [所有用户]
有什么问题吗?谁能帮助我吗?
Just developed a outlook addin, but now i am trying to create a setup project. i follow the tutorial from http://www.supinfo-projects.com/en/2006/add_in_outlook_2007_en/introduction/ , but when i try to install a error occurred ( Error 1001. Cannot set the security policy. --> Cannot create the security code group 'OutlookPanel'. --> The system cannot find the spetified file (exception from hresult: 0x80070002)
In the custom action in install i have
/assemblyName="OutlookPanel" /targetDir="[TARGETDIR]\" /solutionCodeGroupName="Company.OutlookPanel" /solutionCodeGroupDescription="Code group for OutlookPanel" /assemblyCodeGroupName="OutlookPanel" /assemblyCodeGroupDescription="Code group for OutlookPanel" /allUsers=[ALLUSERS]
What's the problem?? can anyone help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
忘记添加注册表项。
Forget to add the registry keys.
您应该始终在 HKCU 而不是本地计算机或策略下写入密钥。该插件将从 HCKU 正常加载。
You should always write keys under HKCU instead Local Machine or Policies. The addin will load normally from HCKU.
在“HKLM\Software\Microsoft\Office\Outlook\AddIns\YourAddinName.Connect”下添加以下注册表项。
键名:LoadBehavior,
值:“3”(始终在启动时加载),
值类型:整数 (DWORD)。
键名:友好名称,
值:“产品名称”,
值类型:字符串。
键名:描述,
值:“描述”,
值类型:字符串。
但是,您可以忽略第三个键。
Add following registry keys under," HKLM\Software\Microsoft\Office\Outlook\AddIns\YourAddinName.Connect".
Key name : LoadBehavior,
Value :"3" (always load at startup),
Value Type : integer (DWORD).
Key name : FriendlyName,
Value :"Product Name",
Value Type : string.
Key name : Description,
Value :"Description",
Value Type : string.
However, you can ignore the third key.