Hi,

I have a wixproj which specifies "<Cultures>en-us;es-es</Cultures>". As you 
know, compiling this wixproj will create two MSIs located in en-us folder and 
es-es folder respectively.

My installer installs a UI product and need to place the corresponding resource 
file to the installation folder. For example, the en-us version MSI should put 
the en-us resource of the UI product to the installation folder.

Right now, I am hard code the locale names and put all locales' resources to 
the installation folder like:

       <DirectoryRef Id="RESOURCE_en-us">
        <Component Id='enusComponent' 
Guid='7251f24a-ebf5-4833-9dfb-275ee9b0f9e7' Location='local' DiskId='1' 
Win64='$(var.Win64AttributeValue)'>
          <File Id='RES_en-us'
                Vital='yes'
                KeyPath='yes'
                Name='resources.dll'
                Source='$(var.Binaries_PATH)\en-us\resources.dll' />
        </Component>
      </DirectoryRef>
       <DirectoryRef Id="RESOURCE_es-es">
        <Component Id='enusComponent' 
Guid='7251f24a-4424-4833-adaa-27424b0f9e7' Location='local' DiskId='1' 
Win64='$(var.Win64AttributeValue)'>
          <File Id='RES_es-es'
                Vital='yes'
                KeyPath='yes'
                Name='resources.dll'
                Source='$(var.Binaries_PATH)\es-es\resources.dll' />
        </Component>
      </DirectoryRef>

This is obvious a bad solution since it packs all locales resources for any 
locale's MSI. I would like pack only the corresponding locale resource for one 
MSI. But how can I dynamically get the current locale that the MSI is built? Is 
there any global variable exposing locale information?

Appreciate your help!


Thanks
Lian




------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to