In my install source hierarchy, I have different localized versions of
files in different directories. So far, I have something that looks like
this:

[Install.wxs]
...
            <Component Id="welcome.txt"
Guid="{49A4E289-5B76-4DD4-BE7A-145C9FC3E4B9}">
                <File Id="welcome.txt" Source="!(loc.WelcomeDoc)"
KeyPath="yes"/>
            </Component>
...

[Resources_en-us.wxl]
<?xml version="1.0" encoding="utf-8"?>
<WixLocalization Culture="en-us" xmlns="
http://schemas.microsoft.com/wix/2006/localization";>
    <String Id="LangID">1033</String>
    <String
Id="WelcomeDoc">MySourceFiles\documentation\en\Welcome.txt</String>
</WixLocalization>

[Resources_es-es.wxl]
<?xml version="1.0" encoding="utf-8"?>
<WixLocalization Culture="es-es" xmlns="
http://schemas.microsoft.com/wix/2006/localization";>
    <String Id="LangID">1034</String>
    <String
Id="WelcomeDoc">MySourceFiles\documentation\es\Bienvenido.txt</String>
</WixLocalization>

etc.

Unfortunately, when I run light.exe, I get the following errors for any
files that attempt to use a localized string in the Source attribute:

error LGHT0204 : ICE03: Invalid Filename; Table: File, Column: FileName,
Key(s): welcome.txt

If I look at the Files table, it seems that the non-localized files (which
have a hard-coded Source attribute) have their leading path information
(for example, MySourceFiles\documentation\) stripped off, whereas the
localized files contain the leading path information. This extra path
information in the Files table, presumably, accounts for the error. I'm
guessing that candle.exe handled the path information such that, when the
language strings are resolved from the localization files in light.exe, it
is too late for localized files to get the same treatment.

That said, what is the correct way add localized files?
___________
Frank Jenner
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to