Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wix Bootstrapper setup.exe never starts and log reads Failed to load theme controls

Environment

Using a Bootstrapper project in Visual Studio 2012/Visual Studio 2013

Windows 7 Enterprise SP1

WixToolset 3.8

Details

Setup.exe never runs

The log file in AppData/Local/Temp/[WixBundleName][DateTime].log reads "Error 0x8007000d: Failed to load theme controls."

like image 574
JDennis Avatar asked Jan 11 '23 15:01

JDennis


2 Answers

I have found that editing the Theme/Image[@ImageFile] value to anything other than Logo.png with cause the described error.

Changing the value back to Logo.png reverses the error.

Setting the value in Wix/Bundle/bal:WixStandardBootstrapperApplication[@LogoFile] appropriately changes the image and does not cause the setup.exe to produce an error.

Note I downloaded and used the default theme for HyperlinkLicense for my custom template with only change being the ImageFile attribute. It is improbable that this was a result of ill-formed xml.

like image 175
JDennis Avatar answered Jan 13 '23 05:01

JDennis


In addition to JDennis' answer: If you want to change the image, you should not modify the theme file. You need to define LogoFile attribute of the bal:WixStandardBootstrapperApplication element in your bundle:

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
                  <bal:WixStandardBootstrapperApplication LicenseUrl="" LogoFile="myLogo.png" ThemeFile="myHyperlinkTheme.xml" LocalizationFile="myHyperlinkTheme.wxl" />
</BootstrapperApplicationRef>
like image 26
Mum Avatar answered Jan 13 '23 05:01

Mum