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
Installation Wix-生成安装程序包时出错-错误CNDL0200(未处理的扩展元素)_Installation_Wix_Windows Installer_Wix3.9 - Fatal编程技术网

Installation Wix-生成安装程序包时出错-错误CNDL0200(未处理的扩展元素)

Installation Wix-生成安装程序包时出错-错误CNDL0200(未处理的扩展元素),installation,wix,windows-installer,wix3.9,Installation,Wix,Windows Installer,Wix3.9,你好,我在构建这个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/UtilExtensio

你好,我在构建这个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>
...

...

有没有办法解决这个问题?

看起来您实际上还没有为构建提供WixUtil扩展dll。这取决于构建的方式,但在Visual Studio中,您需要将Dll添加到引用节点,否则在命令行上,您需要在candle命令行上使用-ext wixutileextension,并在构建位置提供Dll

谢谢,但是我已经在安装程序引用中添加了dll,这就是这个问题的奇怪之处。但我可以试试第二部分。谢谢