Customizing text in standard Wix dialogs

I use standard Wix dialogs. How to customize the text of displayed messages?

For example, on the "License Agreement" page, I want to change the text "I accept the terms of the license agreement" to "I acknowledge and agree to the terms of the above agreement."


on this topic:
How to set the runtime text to be displayed in VerifyReadyDlg?

+7
wix wix3
source share
2 answers

Here is how I did it:

  • Add a new localization file to my Votive project (for example, Visual Studio Wix project) - right-click, Add β†’ New Item ... β†’ Wix localization file
  • Since I set up the English text, I made sure that the Culture attribute in the file is specified by en-US
  • Added String elements for each element that I wanted to customize. For example.

    <WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization"> <String Id="WelcomeEulaDlgLicenseAcceptedCheckBox">I accept the terms of the above Agreement</String> </WixLocalization> 
  • To identify the line identifiers that I need to override, I looked at the WixUI_en-us.wxl file from the Wix source code. In some cases it was useful to refer to the source code of the individual dialogs to find which lines were used there.

  • One final note: when you add a localization file to your project, Wix starts outputting msi files in subfolders named for the culture in the localization file. For example. mine were written to \ bin \ Debug \ en-us, not \ bin \ Debug \
+16
source share

Chapter Advanced WiX Themes β†’ Wix UI Dialog Library β†’ Configuring the WixUI Embedded Dialog Sets in the WiX documentation (wix.chm) contains all the information about customizing user interface dialogs, including text. There is also a topic on customizing the user interface in the WiX tutorial at http://www.tramontana.co.hu/wix/ .

If you find that you need to override more WiX default settings, the best way to get started is to download sources (e.g. from http://wix.sourceforge.net/releases/3.5.1030.0/wix35-sources.zip ): all user dialogs The interfaces are located in the src \ ext \ UIExtension \ wixlib file and will give you an idea of ​​how this works.

+5
source share

All Articles