Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WiX get culture preprocessor variable

I have a folder struckture like

[MyApp]
--[Videos]
  --[de-de]
    -video1.mpg
    - blah blah blah
  --[en-us]
    - video1.mpg
    - blah blah blah
etc etc

To include this videos to languagespecific installers i need an ability to access something like $(var.Culture) (<--didnt exist). I tried to use the language files

<WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization">
  <String Id="Localisation">en-us</String>
</WixLocalization>

but that also doenst work cause they arent preprocessor variables so i cant use them in the "candle" process. Is there any way to get the culturecode as a preprocessor variable for the current builded msi? Im sorry if this question is trivial but i searched google and i didnt find a real solution.

like image 512
BudBrot Avatar asked Oct 20 '22 11:10

BudBrot


1 Answers

You can use your localization variable:

<File Id="fileVideo1" Source="!(loc.Localisation)\video1.mpg"/>

Candle will take value from localization file for each culture.

like image 123
Nerielle Avatar answered Oct 23 '22 23:10

Nerielle