【问题标题】:WiX patching not updating files correctlyWiX 补丁无法正确更新文件
【发布时间】:2011-08-19 16:43:47
【问题描述】:

我的“admin-image”风格的 WiX 测试补丁无法正确更新现有安装。使用 msiexec /lx 时,我得到以下与修补“fi_executable.exe”相关的信息:

MSI (s) (88:E0) [12:32:41:716]: Baseline: Patch {E244BAC8-7E62-4406-889B-4B67A4EA7369} modified fi_executable.exe with full-file update.
MSI (s) (88:E0) [12:32:41:716]: Baseline: First patch for fi_executable.exe, saving native info.
MSI (s) (88:E0) [12:32:41:716]: Baseline: fi_executable.exe version for baseline at patch Native: 6.0.5803.11, 1033, 53840.
...
MSI (s) (88:E0) [12:32:41:716]: Baseline: fi_executable.exe version for baseline at patch {E244BAC8-7E62-4406-889B-4B67A4EA7369}: 6.0.5830.99, 1033, 47104.
...
MSI (s) (88:E0) [12:32:41:763]: {E244BAC8-7E62-4406-889B-4B67A4EA7369} File: fi_executable.exe ValData: 6.0.5830.99 1033 47104
...
MSI (s) (88:E0) [12:32:41:763]: Native File: fi_executable.exe ValData: 6.0.5803.11 1033 53840
...
MSI (s) (88:E0) [12:32:42:543]: The file represented by File table key 'fi_executable.exe' has no eligible binary patches

因此,即使版本号发生了变化,并且 Windows Installer 注意到补丁修改了文件,Windows Installer 也没有识别出应该对可执行文件进行更新。

为什么?

【问题讨论】:

    标签: wix windows-installer wix3 wix3.5


    【解决方案1】:

    在尝试使用补丁之前,您是否先使用完整的 MSI 文件测试了升级?补丁只是以更压缩的方式打包升级的一种交付机制,如果完整的 MSI 升级不起作用,补丁也不会起作用。

    【讨论】:

    【解决方案2】:

    尝试用这个命令行安装你的补丁:

    msiexec /p patch.msp /qb REINSTALL=ALL REINSTALLMODE=omusa
    

    没有这些附加参数,我的补丁无法正确安装:它没有更新任何文件。

    【讨论】:

      猜你喜欢
      • 2018-04-12
      • 1970-01-01
      • 2015-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-15
      • 2012-04-15
      相关资源
      最近更新 更多