3

Basically I've created a small bundle with a custom theme, it works fine on my development computer, however when I try and run it on any other computer the exe doesn't even run. I discovered that the cause of this is the custom theme and if I remove this and use the default then the exe runs fine.

I've tried adding the xml file to the project, tried different methods of referencing the file but with no improvement. Is there something I have to do to package the theme with the install?

Yan Sklyarenko
  • 31,557
  • 24
  • 104
  • 139
sparker
  • 123
  • 8

2 Answers2

2

If your theme is based off of the standard HyperlinkLicense or RtfLicense themes, you can add the theme and logo files using the BalExtension:

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">

and changing the BootstrapperApplicationRef to contain the following:

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
  <bal:WixStandardBootstrapperApplication
    ThemeFile="path/to/theme.xml"
    LicenseFile="path/to/license.rtf"
    LogoFile="path/to/logo.png" />
</BootstrapperApplicationRef>
levarius
  • 1,048
  • 7
  • 15
1

My guess: you're trying to run these on Windows XP, and those machines don't have GDI+ installed. Probably means you're using an unsupported image file type for one of your graphics. Try using .ICO files instead of JPG files, or BMP files. Then XP will support them for sure.

Burn doesn't give the best error reporting, so you'll have to do a lot of trial and error.

MarcWan
  • 2,943
  • 3
  • 28
  • 41
  • Ok thanks, I'll try and give this a go when I can get back onto it :) just working on something else at this moment! – sparker Sep 27 '12 at 08:23
  • 1
    Actually, I've also discovered that it could also be due to a file link problem. If you include a graphic in a WixStdBS setup, you need to Payload it into your install. i.e. under the BootstrapperApplicationRef element. – MarcWan Sep 27 '12 at 09:32
  • I know this is a really late reply, but we've only just got back onto updating WiX. Turns out it was the Payload suggestion, thanks MarcWan – sparker Dec 11 '13 at 15:09