配置Wix为firebreath插件添加依赖dll

时间:2012-04-22 01:58:45

标签: wix windows-installer wix3.5 firebreath

配置firebreath生成的Wix文件以接受其他文件,但没有成功

   <!-- Put Additional files here: -->
  <!-- example:-->
   <Component Id="test" Guid="{104ca7b7-f654-481f9f6a-9a5b5a39c93b}">
        <File Id="test" KeyPath="yes" Source="C:\location\test.dll" />
    </Component>


    <Feature Id="MainPluginFeature" Title="${FBSTRING_ProductName}" Level="1">
      <ComponentRef Id="InstallDirComp"/>
      <ComponentRef Id="PluginNameDirComp"/>
      <ComponentRef Id="CompanyDirComp"/>
      <ComponentGroupRef Id="PluginDLLGroup"/>          
      <ComponentRef Id="test"/>
    </Feature>
  

错误:错误8错误LGHT0204:ICE38:组件测试安装到用户   轮廓。它必须使用HKCU下的注册表项作为其KeyPath,而不是   文件。

我已经尝试了以下但最终出错了,

  • 将GUID更改回*
  • 将directory = INSTALLDIR添加到组件
  • 将组件移到目录
  • 之外

我尝试阅读各种论坛,Wix文档没有多大帮助。我错过了什么?

1 个答案:

答案 0 :(得分:2)

要解决ICE38,您需要添加虚拟注册表项并设置文件KeyPath="no"

<Component Id="test" Guid="{104ca7b7-f654-481f9f6a-9a5b5a39c93b}">
   <File Id="test" KeyPath="no" Source="C:\location\test.dll" />
   <Registry Root=”HKCU” KeyPath=”yes” … />
</Component>