【问题标题】:Wix - Error when building setup package - ERROR CNDL0200 (unhandled extension element)Wix - 构建安装程序包时出错 - 错误 CNDL0200(未处理的扩展元素)
【发布时间】:2015-07-10 12:03:15
【问题描述】:

您好,我在构建此 WiX 安装包时遇到问题...我正在使用 Wix utilExtensions 并将其添加到安装项目的引用中。在构建包时,我收到以下错误;

提供的 XML 代码;

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
  <Fragment>

    <Directory Id="TARGETDIR" Name="SourceDir">
      <!--Creates the Roaming folder required for local document    saving-->
      <Directory Id="AppDataFolder">
        <Directory Id="ROAMINGFOLDER" Name="App">
          <Component Id="ROAMINGFOLDER" Guid="*">
            <RemoveFolder Id="ROAMINGFOLDER" On="uninstall"/>
            <RegistryValue Root="HKMU"
                           Key="Software\[Manufacturer]\[ProductName]\Roaming"
                           Type="string"
                           Value="App Roaming Folder" />
          </Component>
        </Directory>
      </Directory>

      <Directory Id="ProgramFilesFolder">
        <Directory Id="APPLICATIONFOLDER" Name="My App">

          <Component Id="APPLICATIONFOLDER" Guid="*">
            <RemoveFolder  Id="APPLICATIONFOLDER"
                       On="both"  />
            <util:RemoveFolderEx Id="APPLICATIONFOLDER" On="uninstall"/>
            <RegistryValue Root="HKMU"
                           Key="Software\[Manufacturer]\[ProductName]"
                           Type="string"
                           Value="My App" />
          </Component>
...

有解决这个特定问题的想法吗?

【问题讨论】:

    标签: installation wix windows-installer wix3.9


    【解决方案1】:

    看起来您实际上并没有为构建提供 WixUtilExtension dll。这取决于您的构建方式,但在 Visual Studio 中,您会将 Dll 添加到 References 节点,否则在命令行上,您将在蜡烛命令行上使用 -ext WixUtilExtension,并使 Dll 在构建中可用地点。

    【讨论】:

    • 谢谢,但我已经将 dll 添加到安装程序引用中,这就是这个问题的奇怪之处。但我可以试试第二部分。谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-06
    • 2011-12-12
    • 2014-12-28
    相关资源
    最近更新 更多