3

您好,我在构建此 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>
...

关于解决这个特定问题的任何想法?

4

1 回答 1

1

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

于 2015-07-10T18:22:19.353 回答