1

I have .NET solution with fully working WIX project that builds installer. We have recently introduced translation resources for latin spanish language (es-419) generated by SDL Passolo. The problem is that upon build we now receive errors like the following:

ICE03: Invalid Language Id; Table: File, Column: Language, Key(s): <file_key_here>

Languages are included in compilation via LanguageDirectories.wxs

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Fragment>
        <DirectoryRef Id="INSTALLFOLDER">
            <Directory Id="de" Name="de" />
            <Directory Id="en" Name="en" />
            <Directory Id="es_419" Name="es-419" />
    </DirectoryRef>
    </Fragment>
</Wix>

I went through WIX documentation but didn't find anything that could help me with this error. I've used ILSpy to inspect the DLLs but they do not seem to have any language id the error speaks of.

rufus1530
  • 765
  • 4
  • 19
  • [Please see if this old answer helps](https://stackoverflow.com/a/24793670/129130). Open the MSI with Orca and inspect the File table. – Stein Åsmul Dec 18 '21 at 16:19
  • Maybe a problem with command line, or project settings? (invalid language specification when building MSI). The code fragment you posted looks okay to me... How do you specify the target MSI language? – Nikolay Dec 18 '21 at 19:53
  • 1
    Yes, probably something simple. However, do try to open the MSI with Orca and see what is actually in there. There tend to be surprises with MSI. – Stein Åsmul Dec 18 '21 at 20:09
  • I've checked the .msi with orca, language code for failing files is `22538`, which seems to be correct for `Spanish (Latin America)` language. https://renenyffenegger.ch/notes/Windows/development/Internationalization/language – rufus1530 Dec 20 '21 at 12:18
  • Forgot to add: installer itself is not localized. Included resource dlls are for application itself. – rufus1530 Dec 20 '21 at 12:23

0 Answers0