[wix-users] Creating one MSI per language - error LGHT0100: The localization identifier 'xxxx' has been duplicated in multiple locations

Diala Da Costa dialac at microsoft.com
Wed May 4 21:17:44 PDT 2016


Hi,

I'm new to MSI and WIX but I'm trying to create a Multi-Language MSI package without a setup.exe launcher. Using this link http://www.codeproject.com/Articles/103749/Creating-a-Localized-Windows-Installer-Bootstrap

I'm still in the step of creating one MSI per language and I'm passing the following value "pt-br,en-us;en-us" in Visual Studio with the goal to have 2 MSIs (Portuguese and an English) as result of building the wixproj.

In my wixproj, I have the following entry:
<PropertyGroup>
  <Cultures>pt-br,en-us;en-us</Cultures>
</PropertyGroup>

And also I have the 2 strings.wxl files listed like:
<ItemGroup>
    <EmbeddedResource Include="Localization\en-us\Strings.wxl" />
    <EmbeddedResource Include="Localization\pt-br\Strings.wxl" />
  </ItemGroup>

In VS, I can see Light.exe being called twice with the following cultures:

light.exe -o bin\Release\Setup.msi
     -ext WixNetFxExtension.dll
     -ext WixUIExtension.dll
     -cultures:"pt-br,en-us"
     Product.wixobj
     -loc Localization\en-us\strings.wxl
     -loc Localization\pt-br\strings.wxl

And

light.exe -o bin\Release\Setup.msi
     -ext WixNetFxExtension.dll
     -ext WixUIExtension.dll
     -cultures:"en-us"
     Product.wixobj
     -loc Localization\en-us\strings.wxl
     -loc Localization\pt-br\strings.wxl

But I'm getting the following errors, in the first call already:

error LGHT0100: The localization identifier 'xxxxx' has been duplicated in multiple locations.  Please resolve the conflict.

If I change the Localization\pt-br\strings.wxl with Build Action "None" instead of "EmbeddedResource". In the wixproj like:

<ItemGroup>
    <EmbeddedResource Include="Localization\en-us\Strings.wxl" />
    <None Include="Localization\pt-br\Strings.wxl" />
  </ItemGroup>

The errors are gone. However both MSI are showing English UI strings. I'm assuming it's because the Localization\pt-br\Strings.wxl file is not used during the build.

Am I doing something wrong? Am I missing anything? Is it possible to have light.exe being called several times, per culture group, using more than one embeddedresource type file (-loc parameter)?

Thanks a lot,
Diala



More information about the wix-users mailing list