tags:

views:

251

answers:

2

Is there a simple way to change the font colour and (preferably) font type for one of the strings in one of the standard UI dialogs in Wix?

I'd prefer not to copy and paste the entire dialog source code into my file.

For example, in the welcome dialog I want to keep WelcomeDlgTitle and WelcomeDlgDescription the same, just change the font colour to white.

Please help, thanks

Ray

+2  A: 

Easily, you just need to define a new TextStyle in white color, e.g.

<TextStyle Id="White8" FaceName="Tahoma" Size="8" Red="255" Green="255" Blue="255"  />
<TextStyle Id="White12" FaceName="Tahoma" Size="12" Red="255" Green="255" Blue="255"  />

And then update the strings you want to change to use that style, e.g.

<String Id="WelcomeDlgDescription">{\White8}The Setup Wizard will install [ProductName] on your computer. Click Next to continue or Cancel to exit the Setup Wizard.</String>
<String Id="WelcomeDlgTitle">{\White12}Welcome to the [ProductName] Setup Wizard</String>
sascha
Thanks very much :)
ray dey
A: 

I'm struggling with the same problem. Can you please post a complete code snippet? I'm not able to figure out where to nest your attributes in. thanks! Marco

Marco
The `TextStyle` tags nest within a `UI` block while the `String` tags need to go in a separate `.wxl` file.
sascha