Search code examples
wixwix4

Package/@Languages in WiX 4


In WiX 3 there is Package/@Languages element to specify a list of language the MSI package supports. When using wix convert tool to upgrade to WiX4, this element just gets removed. How do you specify languages in WiX 4 project?


Solution

  • The MSI package language can be set in either of the following ways:

    1. Directly in the Package/@Language attribute.
    2. Using a .wxl file with the Localization/@Culture attribute set.

    During the build, the summary information will be set correctly. The Windows Installer does not officially support setting multiple languages on an MSI package, so the Package/@Languages attribute in WiX v3 was unnecessary and could create invalid packages with mismatched languages. That bug was fixed in WiX v4.