坚持使用 WiX 引导程序;它给出了“错误 0x80070643:无法安装 MSI 包" [英] Stuck with WiX bootstrapper; it gives "Error 0x80070643: Failed to install MSI package"

查看:43
本文介绍了坚持使用 WiX 引导程序;它给出了“错误 0x80070643:无法安装 MSI 包"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 WiX 工具集创建了一个 .msi,它运行良好.但问题是当我想使用 WiX Bootstrapper 项目运行 .msi 时,它在日志文件中给了我以下错误.

I created a .msi using the WiX Toolset, and it works fine. But the problem is when I want to run the .msi using WiX Bootstrapper project, it gives me the below errors in the log file.

错误 0x80070643:无法安装 MSI 包.错误 0x80070643:无法执行 MSI 包.错误 0x80070643:无法配置每台机器的 MSI 包.

Error 0x80070643: Failed to install MSI package. Error 0x80070643: Failed to execute MSI package. Error 0x80070643: Failed to configure per-machine MSI package.

这是我的 WiX Bootstrapper 包代码片段:

Here is my WiX Bootstrapper bundle code snippet:

 <Bundle Name="BootstrapperHelloWorld" Version="1.0.0.0" Manufacturer="Arifur Rahman" UpgradeCode="1dd53ea0-e19b-4e89-a85f-97ab912700d3">
     <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

     <Chain>
        <MsiPackage SourceFile="D:\HelloWorld\BootstrapperHelloWorld\Prerequisit\HelloWorld.msi" />
    </Chain>

推荐答案

绝对路径错误只会在 WiX 捆绑包尝试编译您的 Bundle.wxs 文件并且在该位置找不到 MSI 文件时发生你提到过.该错误不会在运行时发生.此外,如果您设置了 MSIPackage Compressed 属性,那么您的 MSI 文件将作为捆绑 EXE 文件的一部分添加,而不是作为单独的文件.

The error for absolute path will only happen when the WiX bundle tries to compile your Bundle.wxs file and if it doesn't find the MSI file in the location you mentioned. That error won't happen at run time. Also if you set the MSIPackage Compressed property, then your MSI file will be added as part of the bundle EXE file and not left as a separate file.

执行此操作,然后运行您的捆绑包并将捆绑包的日志文件以及 MSI 日志粘贴到此处.

MSI 日志将位于C:\Users\username\AppData\Local\Temp{logfilename}.log".MSIpackage 的 {logfilename} 将基于 MSIPackage → LogPathVariable - 保存日志文件路径的变量名称.

空值将导致变量不被设置.默认为WixBundleLog_[PackageId]",但默认不记录日志的 MSU 包除外.

这篇关于坚持使用 WiX 引导程序;它给出了“错误 0x80070643:无法安装 MSI 包"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆