Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

User defined PayloadId causes runtime error for WixStdBA #4491

Closed
wixbot opened this Issue Aug 7, 2014 · 4 comments

Comments

Projects
None yet
2 participants
Collaborator

wixbot commented Aug 7, 2014

When you define a PayloadId for an image that WixStdBA uses, you get an error message dialog at runtime:

path\to\.ba1\test.png is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.  Error status 0xc000012f.

Burn log:

[09FC:10AC][2014-08-07T08:34:25]i001: Burn v3.8.1128.0, Windows v6.3 (Build 9600: Service Pack 0), path: C:\WixPayloadIdBug.exe, cmdline: ''
[09FC:10AC][2014-08-07T08:34:25]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\shall\AppData\Local\Temp\WixPayloadIdBug_20140807083425.log'
[09FC:10AC][2014-08-07T08:34:25]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\WixPayloadIdBug.exe'
[09FC:10AC][2014-08-07T08:34:25]i000: Setting string variable 'WixBundleName' to value 'WixPayloadIdBug'
[09FC:10AC][2014-08-07T08:42:27]e000: Error 0x800700c1: Failed to load UX DLL.
[09FC:10AC][2014-08-07T08:42:27]e000: Error 0x800700c1: Failed to load UX.
[09FC:10AC][2014-08-07T08:42:27]e000: Error 0x800700c1: Failed while running 
[09FC:10AC][2014-08-07T08:42:27]i410: Variable: WixBundleAction = 4
[09FC:10AC][2014-08-07T08:42:27]i410: Variable: WixBundleElevated = 0
[09FC:10AC][2014-08-07T08:42:27]i410: Variable: WixBundleLog = C:\Users\shall\AppData\Local\Temp\WixPayloadIdBug_20140807083425.log
[09FC:10AC][2014-08-07T08:42:27]i410: Variable: WixBundleManufacturer = Test
[09FC:10AC][2014-08-07T08:42:27]i410: Variable: WixBundleName = WixPayloadIdBug
[09FC:10AC][2014-08-07T08:42:27]i410: Variable: WixBundleOriginalSource = C:\WixPayloadIdBug.exe
[09FC:10AC][2014-08-07T08:42:27]i410: Variable: WixBundleProviderKey = {a8e7c1fc-2fce-4a37-887a-9458b7e0845d}
[09FC:10AC][2014-08-07T08:42:27]i410: Variable: WixBundleTag = 
[09FC:10AC][2014-08-07T08:42:27]i410: Variable: WixBundleVersion = 1.0.0.0
[09FC:10AC][2014-08-07T08:42:27]e000: Error 0x800700c1: Failed to run per-user mode.
[09FC:10AC][2014-08-07T08:42:27]i007: Exit code: 0x800700c1, restarting: No

Happens with 3.8.1128.0 and 3.9.805.0 (I didn't try out any other versions).

Steps to repro:

First create a bundle like this:

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
  <Bundle Name="WixPayloadIdBug" Version="1.0.0.0" Manufacturer="Test" UpgradeCode="f265b462-103e-4407-b5d9-79c95acad238">
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
      <bal:WixStandardBootstrapperApplication LicenseUrl="" ThemeFile="CustomRtfTheme.xml" />
      <Payload Id="MyID" SourceFile="test.png" />
    </BootstrapperApplicationRef>

    <Chain>
      <ExePackage SourceFile="C:\Windows\notepad.exe" />
    </Chain>
  </Bundle>
</Wix>

Then for CustomRtfTheme.xml, take RtfTheme.xml and add an image element for test.png:

<Image X="11" Y="11" Width="64" Height="64" ImageFile="test.png" Visible="yes"/>

Then create the test.png file, compile the bundle, and run it.

Simply removing Id="MyID" from the payload makes it work.

Originally opened by rseanhall

Collaborator

wixbot commented Aug 7, 2014

Originally changed by rseanhall
AssignedTo set to shall

Collaborator

wixbot commented Aug 12, 2014

Pull request: wixtoolset/wix3#131

Originally posted by rseanhall

Collaborator

wixbot commented Aug 14, 2014

Area set to burn
Release changed from v3.x to v3.9

Collaborator

wixbot commented Aug 16, 2014

Originally changed by rseanhall
Resolution set to fixed
Status changed from Open to Resolved

@wixbot wixbot added bug burn labels Dec 20, 2015

@wixbot wixbot added this to the v3.9 milestone Dec 20, 2015

@wixbot wixbot closed this Dec 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment