I have a WiX3.x bundle project and just upgraded it to WiX4 (latest release candidate) using HeatWave. The created bundle does not install (100% reproducible). The log file contains these lines:
Error 0x80070057: Failed to initialize data in bootstrapper application.
Shutting down, exit code: 0x57
The converted bundle.wxs is as follows (changed names of packages to a generic string but that should not make a difference):
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
<Bundle Copyright="Copyright now"
DisableModify="no"
IconSourceFile="MyIcon.ico"
Manufacturer="Me"
Name="My Product"
Version="1.0"
UpgradeCode="{BF71BD9F-86A4-4209-B173-A174B04EA383}">
<BootstrapperApplication>
<bal:WixStandardBootstrapperApplication LicenseUrl=""
LocalizationFile="HyperlinkTheme.wxl"
ShowVersion="yes"
SuppressOptionsUI="yes"
SuppressRepair="yes"
Theme="hyperlinkLicense" />
</BootstrapperApplication>
<Chain>
<MsiPackage bal:DisplayInternalUICondition="WixBundleExecutePackageAction = 2"
SourceFile="Product.msi"
Visible="no" />
<MsiPackage bal:DisplayInternalUICondition="WixBundleExecutePackageAction != 2"
InstallCondition="NOT VersionNT64"
SourceFile="Additional32.msi"
Visible="no" />
<MsiPackage bal:DisplayInternalUICondition="WixBundleExecutePackageAction != 2"
InstallCondition="VersionNT64"
SourceFile="Additional64.msi"
Visible="no" />
</Chain>
</Bundle>
</Wix>
As a reference I also included the original WiX3 bundle.wxs (that creates a working bundle):
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
<Bundle Copyright="Copyright now"
DisableModify="no"
IconSourceFile="MyIcon.ico"
Manufacturer="Me"
Name="My Product"
Version="1.0"
UpgradeCode="{BF71BD9F-86A4-4209-B173-A174B04EA383}">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
<bal:WixStandardBootstrapperApplication LicenseUrl=""
LocalizationFile="HyperlinkTheme.wxl"
ShowFilesInUse="yes"
ShowVersion="yes"
SuppressOptionsUI="yes"
SuppressRepair="yes" />
</BootstrapperApplicationRef>
<Chain>
<MsiPackage DisplayInternalUI="yes"
SourceFile="Product.msi"
Visible="no" />
<MsiPackage DisplayInternalUI="no"
InstallCondition="NOT VersionNT64"
SourceFile="Additional32.msi"
Visible="no" />
<MsiPackage DisplayInternalUI="no"
InstallCondition="VersionNT64"
SourceFile="Additional64.msi"
Visible="no" />
</Chain>
</Bundle>
</Wix>
What could be the issue here?
BTW: I did notice that the ShowFilesInUse
attribute is no longer there in WiX4. Is there a replacement for that?
EDIT: Added the complete log files of the installation attempt Setup.cleanroom.log
[11A0:1A78][2023-04-05T07:43:46]i001: Burn x86 v4.0.0-rc.4+dea44a7d50f04dff2087218b3be0dbf1bf6d5c0b, Windows v10.0 x64 (Build 19045: Service Pack 0), path: Z:\Installer\Setup.exe
[11A0:1A78][2023-04-05T07:43:46]i009: Command Line: ''
[11A0:1A78][2023-04-05T07:43:46]i000: Setting string variable 'WixBundleOriginalSource' to value 'Z:\Installer\Setup.exe'
[11A0:1A78][2023-04-05T07:43:46]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'Z:\Installer\'
[11A0:1A78][2023-04-05T07:43:46]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\admin\AppData\Local\Temp\Setup_20230405074346.cleanroom.log'
[11A0:1A78][2023-04-05T07:43:46]i017: Exit code: 0x57
Setup.log
[0ACC:2334][2023-04-05T07:43:46]i001: Burn x86 v4.0.0-rc.4+dea44a7d50f04dff2087218b3be0dbf1bf6d5c0b, Windows v10.0 x64 (Build 19045: Service Pack 0), path: C:\Users\admin\AppData\Local\Temp\{57701476-1020-430A-B1BF-80290E64EC4F}\.cr\Setup.exe
[0ACC:2334][2023-04-05T07:43:46]i009: Command Line: '-burn.clean.room=Z:\Installer\Setup.exe -burn.filehandle.attached=680 -burn.filehandle.self=712'
[0ACC:2334][2023-04-05T07:43:46]i000: Setting string variable 'WixBundleOriginalSource' to value 'Z:\Installer\Setup.exe'
[0ACC:2334][2023-04-05T07:43:46]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'Z:\Installer\'
[0ACC:2334][2023-04-05T07:43:46]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\admin\AppData\Local\Temp\Setup_20230405074346.log'
[0ACC:2334][2023-04-05T07:43:46]i000: Setting string variable 'WixBundleInProgressName' to value ''
[0ACC:2334][2023-04-05T07:43:46]i000: Setting string variable 'WixBundleName' to value 'My Product'
[0ACC:2334][2023-04-05T07:43:46]i000: Setting string variable 'WixBundleManufacturer' to value 'Me'
[0ACC:1224][2023-04-05T07:43:46]i000: Setting numeric variable 'WixStdBALanguageId' to value 1043
[0ACC:1224][2023-04-05T07:43:46]e000: Error 0x80070057: Failed to initialize data in bootstrapper application.
[0ACC:2334][2023-04-05T07:43:46]i500: Shutting down, exit code: 0x57
[0ACC:2334][2023-04-05T07:43:46]i502: Cleanup begin.
[0ACC:2334][2023-04-05T07:43:46]i504: Cleanup check skipped since this per-machine bundle would require elevation.
[0ACC:2334][2023-04-05T07:43:46]i599: Cleanup complete, result: 0x0
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleCommandLineAction = 6
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleElevated = 0
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleInProgressName =
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleLog = C:\Users\admin\AppData\Local\Temp\Setup_20230405074346.log
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleManufacturer = Me
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleName = My Product
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleOriginalSource = Z:\Installer\Setup.exe
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleOriginalSourceFolder = Z:\Installer\
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleProviderKey = {069B7631-1E6B-4D0B-978E-967DA3F88ACA}
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleSourceProcessFolder = Z:\Installer\
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleSourceProcessPath = Z:\Installer\Setup.exe
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleTag =
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleUILevel = 4
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixBundleVersion = 1.0
[0ACC:2334][2023-04-05T07:43:46]i410: Variable: WixStdBALanguageId = 1043
[0ACC:2334][2023-04-05T07:43:46]i007: Exit code: 0x57, restarting: No