Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# WiX未正确安装Outlook 2010加载项_C#_Wix_Outlook Addin_Outlook 2010_Wix3 - Fatal编程技术网

C# WiX未正确安装Outlook 2010加载项

C# WiX未正确安装Outlook 2010加载项,c#,wix,outlook-addin,outlook-2010,wix3,C#,Wix,Outlook Addin,Outlook 2010,Wix3,我第一次尝试WiX 3.8,尝试为一个简单的Outlook 2010加载项创建一个设置。除了其他功能外,外接程序还需要在Compose上创建功能区选项卡。我想我的产品中缺少了一些东西。从VS 2013 IDE执行外接程序时,它会正确显示在Outlook中,但从WiX安装时,功能区不会在撰写模式下显示,而仅在Outlook资源管理器中显示。我想我在Product.wxs中遗漏了一些东西 <?xml version="1.0" encoding="UTF-8"?> <Wix xm

我第一次尝试WiX 3.8,尝试为一个简单的Outlook 2010加载项创建一个设置。除了其他功能外,外接程序还需要在Compose上创建功能区选项卡。我想我的产品中缺少了一些东西。从VS 2013 IDE执行外接程序时,它会正确显示在Outlook中,但从WiX安装时,功能区不会在撰写模式下显示,而仅在Outlook资源管理器中显示。我想我在Product.wxs中遗漏了一些东西

 <?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Product Id="*" Name="dummyAppSetup" Language="1033" Version="1.0.0.0" Manufacturer="Saurabh Kumar" UpgradeCode="46461820-CDEB-48E7-A975-1ABB1C307EE6">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/>
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed."/>
<MediaTemplate EmbedCab="yes"/>
<Feature Id="ProductFeature" Title="NoReplyAll" Level="1">
  <ComponentRef Id="CMP_AddIn"/>
  <ComponentRef Id="CMP_DllManifest"/>
  <ComponentRef Id="CMP_zipdll"/>
  <ComponentRef Id="CMP_VstoManifest"/>
  <ComponentRef Id="CMP_ToolsCommon"/>
  <ComponentRef Id="CMP_ToolsOutlook"/>
</Feature>
<UIRef Id="WixUI_Minimal"/>
<PropertyRef Id="NETFRAMEWORK40CLIENT"/>
<Condition Message="This product requires the .NET Framework 4.0 or higher version installed.">
  <![CDATA[Installed OR (NETFRAMEWORK40CLIENT OR NETFRAMEWORK40FULL)]]>
</Condition>
 </Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
  <Directory Id="ProgramFilesFolder">
    <Directory Id="INSTALLFOLDER" Name="dummyApp">
      <Component Id="CMP_AddIn" Guid="*">
        <File Id="FILE_AddIn" Source="$(var.dummyApp.TargetPath)" KeyPath="yes"/>
        <RemoveFile Id="PurgeFILE_AddIn" Name="*.*" On="uninstall"/>
      </Component>
      <Component Id="CMP_DllManifest" Guid="*">
        <File Id="FILE_DllManifest" Source="$(var.dummyApp.TargetPath).manifest" KeyPath="yes"/>
      </Component>
      <Component Id="CMP_VstoManifest" Guid="*">
        <File Id="FILE_VstoManifest" Source="$(var.dummyApp.TargetDir)$(var.dummyApp.TargetName).vsto" KeyPath="yes"/>
        <RegistryKey Root="HKLM" Key="Software\Microsoft\Office\Outlook\Addins\dummyApp">
          <RegistryValue Name="Description" Value="dummyApp Add-In" Type="string" Action="write"/>
          <RegistryValue Name="FriendlyName" Value="dummyApp" Type="string" Action="write"/>
          <RegistryValue Name="LoadBehavior" Value="3" Type="integer" Action="write"/>
          <RegistryValue Name="Manifest" Value="[#FILE_VstoManifest]|vstolocal" Type="string" Action="write"/>
        </RegistryKey>
        <RemoveRegistryKey Root="HKLM" Key="Software\Microsoft\Office\Outlook\Addins\dummyApp" Action="removeOnUninstall"/>
      </Component>
      <Component Id="CMP_ToolsCommon">
        <File Id="FILE_ToolsCommon" Source="$(var.dummyApp.TargetDir)Microsoft.Office.Tools.Common.v4.0.Utilities.dll" KeyPath="yes"/>
      </Component>
      <Component Id="CMP_ToolsOutlook">
        <File Id="FILE_ToolsOutlook" Source="$(var.dummyApp.TargetDir)Microsoft.Office.Tools.Outlook.v4.0.Utilities.dll" KeyPath="yes"/>
      </Component>
    </Directory>
  </Directory>
</Directory>
</Fragment>
</Wix>

进一步调查显示,功能区上的实际加载Outlook出现异常:

**调用函数“GetVisible”时发生异常

配置系统初始化失败**

这似乎是在尝试检索我的应用程序设置时发生的:

    <?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
      <section name="dummyApp.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
    </sectionGroup>
  </configSections>
  <userSettings>
    <AutoZip2010.Properties.Settings>
      <setting name="chkEnabled" serializeAs="String">
        <value>True</value>
      </setting>
      <setting name="chkPreview" serializeAs="String">
        <value>False</value>
      </setting>
      <setting name="chkLog" serializeAs="String">
        <value>False</value>
      </setting>
    </AutoZip2010.Properties.Settings>
  </userSettings>
</configuration>

真的
假的
假的

奇怪的是,在Outlook中通过IDE进行调试时,它可以完美地加载。但是从Wix安装后,启动outlook时会出现此异常。

如果该加载项出现在outlook中,安装程序可能不会有问题-如果缺少文件或注册表值,我希望加载项根本不会出现。我建议在Outlook的高级设置中选中“显示加载项用户界面错误”框,这可能会提醒您功能区出现问题。。。也许…

更多详细信息有助于找到隐藏的异常!增加了更多的细节,现在正在讨论中。