It’s being set through a custom Action:

 

  <CustomAction Id="LanguageChecker" BinaryKey="CustomDLL" DllEntry="SystemDefaultUILanguage" />

 

 

Which is basiccly this code (snipped a bit)

 

      LANGID langId = ::GetSystemDefaultUILanguage();

      TCHAR szLang[10] = {0}; _itot((UINT)langId, szLang, 10);

      MsiSetProperty(hMSI, TEXT("SystemDefaultUILanguage"), szLang);

 

 

Perhaps there is a method to get the UI lang within the MSI itself and not use the custom action?

 

-Jeff

     

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Arnson
Sent: Monday, September 18, 2006 9:11 PM
To: Jeff MacDuff
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Problem with install condition based on lang ID

 

Jeff MacDuff wrote:

My condition statement is formatted like this:

 

<Condition Message="You cannot install this version of because it is not compatible with your language version of Windows. Obtain the language version that matches the language version of Windows running on this PC."><![CDATA[SystemDefaultUILanguage = $(var.LCID)OR SystemDefaultUILanguage <> 1033]]></Condition>

 

 

Var.LCID is passed in as the build language and 1033 is of course English. What we are seeing is that the MSI’s can install everywhere.

How are you setting SystemDefaultUILanguage? If it's not set, "SystemDefaultUILanguage <> 1033" evaluates to true.


-- 
sig://boB
http://bobs.org




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to