[wix-users] How to install a component based on ProductLanguage?
Edwin Castro
egcastr at gmail.com
Wed Nov 10 07:28:48 PST 2021
You are trying to specify a private property on the command line. You need
to use a public property.
https://docs.microsoft.com/en-us/windows/win32/msi/about-properties
Changing ProductLanguage to PRODUCTLANGUAGE should work.
--
Edwin G. Castro
On Wed, Nov 10, 2021, 07:20 viharika reddy via wix-users <
wix-users at lists.wixtoolset.org> wrote:
> Hi all,
>
> I have created a multi-language installer which supports English and
> Japanese. I am using torch tool to create the japanese transform file from
> the default one. I have two components which need to be installed based on
> the ProductLanguage(the language in which the installation is running). The
> conditions of the two components are as follows.
>
> comp1 :
> *<Condition>ProductLanguage=1033</Condition>*
>
> comp2 :
> * <Condition>ProductLanguage=1041</Condition>*
>
> The problem here is, only comp1 is always getting installed even though I
> pass the ProductLanguage as 1041.
> Install command - *msiexec.exe /i myprod.msi" /qn ProductLanguage=1041*
>
> Snippet of my wxs file.
>
> *<?xml version="1.0" encoding="utf-8"?>*
> *<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi
> <http://schemas.microsoft.com/wix/2006/wi>">*
> *<Product *
>
> *Id="prod-code" *
>
> *Name="my-prod" *
>
> *Language="1033" *
>
> *Version="1.0.0.0" *
>
> *Manufacturer="my-comp" *
>
> *UpgradeCode="upgrade-code">*
>
>
> *<Package *
>
> *Compressed="yes" *
>
> *Description="my product" *
>
> *InstallerVersion="200" *
>
> *Keywords="Installer,MSI,Database" *
>
> *Languages="0,1033,1041" *
>
> *Manufacturer="my-comp" *
>
> *Platform="x86" *
>
> *SummaryCodepage="0" />*
>
>
> Could you please help if I am doing something wrong here?
>
> Regards,
> Viharika
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
More information about the wix-users
mailing list