Menu

#1250 Light, Localization and Codepage Issue

v3.0
closed
light (353)
2012-09-15
2008-06-20
Reid
No

There is an issue involving light when trying to use a localized variable as the part of the source path. When attempting to resolve the path, light is using the system codepage instead of the product or localization file codepage. This unfortunately causes light to fail spitting out an error that looks like this:

C:\Localization Test\WiXProject1\WiXProject1\Product.wxs(12) : error LGHT0103 : The system cannot find the file "....\Source\????.txt"

The "????" is the localized string name (in this case, it is a Korean string).

Please let me know if you need further information.

Thank you,
Reid

Discussion

  • Bob Arnson

    Bob Arnson - 2008-06-22

    Logged In: YES
    user_id=26581
    Originator: NO

    Can you post the source (and .wxl fragment) that cause that error?

     
  • Reid

    Reid - 2008-06-23

    Logged In: YES
    user_id=2009559
    Originator: YES

    Here's the call to light and candle:
    REM Build Localizer Test

    CALL "....\Install\WiX\Windows Installer XML v3\candle.exe" "WiXProject1\WiXProject1*.wxs" -out "WiXProject1\WiXProject1\wixobj\"

    CALL "....\Install\WiX\Windows Installer XML v3\light.exe" "WiXProject1\WiXProject1\wixobj*.wixobj" -loc "WiXProject1\WiXProject1\Localize.wxl" -out "LocalizeTest.msi"

    Here is the wxl codepage:

    <wixlocalization culture="zh-CHS" codepage="936" xmlns="http://schemas.microsoft.com/wix/2006/localization">
    <string id="user-content-Test">事故数.txt</string>
    </wixlocalization>

    And the main wxs file:

    <wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <product id="user-content-932a39b5-47d0-4ef2-a3b6-56aec4038716" name="WixProject1" language="1033" version="1.0.0.0" manufacturer="WixProject1" upgradecode="9c32334f-83f3-402c-92d3-1890751ad69c">
    <package installerversion="200" compressed="yes"></package></product></wix>

        <Media Id="1" Cabinet="WixProject1.cab" EmbedCab="yes" />
    
        <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="ProgramFilesFolder">
                <Directory Id="INSTALLLOCATION" Name="WixProject1">
                    <Component Id="ProductComponent" Guid="23f03ef3-b5c0-41be-85ee-53c2722ed667">
            <File Id="TestFile" Source="..\..\Source\!(loc.Test)"/>
                     </Component> 
                </Directory>
            </Directory>
        </Directory>
    
        <Feature Id="ProductFeature" Title="WixProject1" Level="1">
            <!-- TODO: Remove the comments around this ComponentRef element and the Component above in order to add resources to this installer. -->
            <ComponentRef Id="ProductComponent" />
        </Feature>
    </Product>
    

     
  • Reid

    Reid - 2008-06-23

    Logged In: YES
    user_id=2009559
    Originator: YES

    Just a quick note, I mentioned earlier it was a Korean string, but it is actually a Chinese string, so the codepage I used in the wxl is correct, sorry for any confusion.

     
  • Rob Mensching

    Rob Mensching - 2008-07-11

    Logged In: YES
    user_id=991639
    Originator: NO

    Should be fixed in next build.

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 15 days (the time period specified by
    the administrator of this Tracker).

     
MongoDB Logo MongoDB