I have been attempting to use the localization files to do this type of thing, 
but no matter what I try, the variables don't use the localized values. (Again, 
the UI shows the localized values, but the variables i.e. LanguageID or 
!(loc.LanguageID) always use the not localized values). Is this an issue with 
the -lang command line argument? I execute my setup as follows: setup.exe -lang 
1046 <Bundle Name="MyBundle" UpgradeCode="My GUID" Version="1.0" 
Manufacturer="My Manufacturer" 
IconSourceFile="../../MyAssembly\Resources\MyIcon.ico" DisableModify="yes" 
><Variable Name="LanguageID" Value="1033" Type="string" bal:Overridable="yes"/>
 <Variable Name="Transform" Value="en-us.mst" Type="string" 
bal:Overridable="yes"/>
 
 <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
 <bal:WixStandardBootstrapperApplication ThemeFile="Resources/theme.xml" 
LocalizationFile="Resources/localization.wxl" 
LicenseFile="Resources/license.rtf" SuppressOptionsUI="yes" 
SuppressRepair="yes"/>
 
 <!--NOTE: the 'Name's of these Payloads cannot be changed or localization 
won't work-->
 <Payload Id="theme_pt" Name="1046\thm.wxl" Compressed="yes" 
SourceFile="Resources/1046/localization.pt-br.wxl"/>
 <Payload Id="eula_pt" Name="1046\license.rtf" Compressed="yes" 
SourceFile="Resources/1046/license.pt-br.rtf"/>
 
 </BootstrapperApplicationRef>
 
 <Chain>
 <PackageGroupRef Id="NetFx45Redist"/>
 <PackageGroupRef Id="NetFx451Redist"/>
 <MsiPackage Id="msi_English" Vital="yes" Compressed="no" 
SourceFile="../Installer/bin/$(var.Configuration)/en-us/app.msi" 
DisplayInternalUI="yes" InstallCondition='LanguageID=1033'/>
 <MsiPackage Id="msi_Portuguese" 
SourceFile="../Installer/bin/$(var.Configuration)/en-us/app.msi" 
DisplayInternalUI="yes" InstallCondition='NOT (LanguageID=1033)'>
 <Payload Id="pt_mst" 
SourceFile="../Installer/bin/$(var.Configuration)/en-us/pt-br.mst"/>
 <MsiProperty Name="TRANSFORMS" Value="[Transform]"/>
 </MsiPackage>
 </Chain>
 
 </Bundle> Then my localization files: <WixLocalization Culture="en-us" 
Language="1033" xmlns="http://schemas.microsoft.com/wix/2006/localization";>
 <String Id="LanguageID">1033</String>
 <String Id="Transform">en-us.mst</String>
</WixLocalization> <WixLocalization Culture="pt-br" Language="1046" 
xmlns="http://schemas.microsoft.com/wix/2006/localization";>
 <String Id="LanguageID">1046</String>
 <String Id="Transform">pt-br.mst</String>
</WixLocalization>
____________________________________________________________
How Old Men Tighten Skin
63 Year Old Man Shares DIY Skin Tightening Method You Can Do From Home
http://thirdpartyoffers.juno.com/TGL3131/54e3cba99f5654ba975ebst04vuc
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to