简体   繁体   English

Outlook外接程序部署

[英]Outlook Addin Deployment

Just developed a outlook addin, but now i am trying to create a setup project. 刚刚开发了一个Outlook插件,但是现在我正在尝试创建一个安装项目。 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) 我遵循http://www.supinfo-projects.com/zh/2006/add_in_outlook_2007_zh/introduction/上的教程,但是当我尝试安装错误时(错误1001。无法设置安全策略。->无法创建安全代码组'OutlookPanel'->系统找不到指定的文件(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] 在安装的自定义操作中,我具有/ assemblyName =“ OutlookPanel” / targetDir =“ [TARGETDIR] \\” /solutionCodeGroupName="Company.OutlookPanel“ / solutionCodeGroupDescription =” OutlookPanel的代码组“ / assemblyCodeGroupName =” OutlookPanel“ / assemblyCodeGroupDescription =” OutlookPanel的代码组” / allUsers = [ALLUSERS]

What's the problem?? 有什么问题?? can anyone help me? 谁能帮我?

忘记添加注册表项。

You should always write keys under HKCU instead Local Machine or Policies. 您应该始终在HKCU下而不是本地计算机或策略下写密钥。 The addin will load normally from HCKU. 该插件将正常从HCKU加载。

Add following registry keys under," HKLM\\Software\\Microsoft\\Office\\Outlook\\AddIns\\YourAddinName.Connect". 在“ HKLM \\ Software \\ Microsoft \\ Office \\ Outlook \\ AddIns \\ YourAddinName.Connect”下添加以下注册表项。

Key name : LoadBehavior, Value :"3" (always load at startup), Value Type : integer (DWORD). 关键字名称:LoadBehavior,值:“ 3”(始终在启动时加载),值类型:整数(DWORD)。

Key name : FriendlyName, Value :"Product Name", Value Type : string. 密钥名称:FriendlyName,值:“产品名称”,值类型:字符串。

Key name : Description, Value :"Description", Value Type : string. 键名:描述,值:“描述”,值类型:字符串。

However, you can ignore the third key. 但是,您可以忽略第三个键。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM