【问题标题】:Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1707 (also 1709)错误 4: SELECT `Message` FROM `Error` WHERE `Error` = 1707 (也是 1709)
【发布时间】:2014-08-21 05:41:22
【问题描述】:

我使用 WiX 3.8 创建了一个 MSI 安装程序,安装时在 MSI 日志的最后出现此错误:

[...]
Property(C): WIXUI_INSTALLDIR_VALID = 1
=== Logging stopped: 8/20/2014  19:15:03 ===
Note: 1: 1707 
Note: 1: 2205 2:  3: Error 
Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1707 
Note: 1: 2205 2:  3: Error 
Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 
Product: CmisSync Shell Extension -- Installation completed successfully.

Windows Installer installed the product. Product Name: My Shell Extension. Product Version: 0.2.23. Product Language: 1033. Manufacturer: Me. Installation success or error status: 0.

Grabbed execution mutex.
Cleaning up uninstalled install packages, if any exist
MainEngineThread is returning 0
=== Verbose logging stopped: 8/20/2014  19:15:03 ===

如何解决这些错误?
或者它们可能是可以安全忽略的已知 WiX/MSI 问题?

我的 WiX 脚本非常简单,它只是安装了一个 shell 扩展,所以我不知道这个错误来自哪里。

从 GUI 的角度来看,安装完成后没有明显问题。所有文件都按预期存在于目标安装文件夹中。

【问题讨论】:

    标签: wix windows-installer


    【解决方案1】:

    这是 MSI 试图在错误表中查找资源,但您的 MSI 中可能没有错误表。以下是消息字符串列表:http://msdn.microsoft.com/en-us/library/aa372835(v=vs.85).aspx。如您所见,1707 和 1709 是您在这些消息之后看到的成功消息的 ID。

    【讨论】:

      【解决方案2】:

      为了修复日志文件中的此类错误,您需要添加对“错误”表的定义的引用:

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

      除了'Fragment',你也可以把这个引用放到'Module'、'PatchFamily'、'Product'、'UI'中。

      参考对我有帮助的原始答案: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Error-Table-td694988.html

      【讨论】:

      • 谢谢,看起来很有希望!但是my WXS file 没有任何&lt;Fragment&gt; 元素......那么我在哪里/如何添加这个WixUI_ErrorProgressText
      • 除了'Fragment',你也可以把这个引用放到'Module'、'PatchFamily'、'Product'、'UI'中。请查看WiX manual
      • 仅供参考,这似乎不适用于产品或片段部分中的 WiX 4 项目:The identifier 'WixUI:WixUI_ErrorProgressText' could not be found. Ensure you have typed the reference correctly and that all the necessary inputs are provided to the linker.
      【解决方案3】:

      这些只是详细/调试消息(看起来您以详细模式开始安装,对吧?)。我不会认为这些是真正的错误。如果我以详细模式启动我的 msi 安装,我会收到类似的“错误”。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-07-31
        • 2021-12-31
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多