我正在制作软件包安装程序并遵循KISS原则。在WiX 3.6-3.8中制作的捆绑包不适用于Windows XP(但在Windows 7中可以正常工作)。原因是高程错误0x800705b4。
[14DC:15A8][2014-02-12T11:54:46]e000: Error 0x800705b4: Failed to wait for child to connect to pipe.
[14DC:15A8][2014-02-12T11:54:46]e000: Error 0x800705b4: Failed to connect to elevated child process.
[14DC:15A8][2014-02-12T11:54:46]e000: Error 0x800705b4: Failed to actually elevate.
[14DC:15A8][2014-02-12T11:54:46]e000: Error 0x800705b4: Failed to elevate.
我已经准备了一个更简单的例子,主要是按照WiX手册中的说明进行的:
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
<Bundle Version="1.0" Manufacturer="Man" UpgradeCode="6E06DEA1-6FF1-4E29-B3DC-A846DD804BF9">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense"/>
<Chain>
<MsiPackage Id="testmsi" Vital="yes" SourceFile="D:\Documents and Settings\Administrator\Desktop\mysql-connector-net-6.8.3.msi" />
</Chain>
</Bundle>
</Wix>
答案 0 :(得分:1)
我好几天都在为这个问题而战。我想出的唯一解决方案是创建一个EXE文件而不是MSI文件:
candle Bundle.wxs -dTargetFileName=Bundle.exe -dTargetExt=.exe
light Bundle.wixobj -out Bundle.exe
在安装了WiX Toolset的Visual Studio中更容易。确保打开安装项目的属性,并选择一个EXE文件输出。
我希望它有所帮助,欢呼:)