配置 Wix 为喷火插件添加依赖 dll



配置了火呼吸生成的Wix文件以接受其他文件,但没有成功

   <!-- Put Additional files here: -->
  <!-- example:-->
   <Component Id="test" Guid="{104ca7b7-f654-481f9f6a-9a5b5a39c93b}">
        <File Id="test" KeyPath="yes" Source="C:locationtest.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 下的注册表项作为其密钥路径,而不是 文件。

我尝试了以下方法,但最终出现了错误,

  • 将 GUID 更改回 *
  • 将目录=安装目录添加到组件
  • 将组件移出目录

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

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

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

最新更新