Well, the UserLanguageID doesn't just give you the language but also the
"locale". There's a difference between English in the USA, English in
Canada, English in the UK, etc.
http://www.microsoft.com/globaldev/reference/lcid-all.mspx
Here are some other system properties you can use if UserLanguageID
isn't the right one:
http://msdn2.microsoft.com/en-us/library/aa370905.aspx
http://msdn2.microsoft.com/en-us/library/aa372389.aspx
Rennie
________________________________
From: Scott Palmer [mailto:[EMAIL PROTECTED]
Sent: 6. juni 2007 14:26
To: wix-users@lists.sourceforge.net
Cc: Rennie Petersen
Subject: Re: [WiX-users] Conditionally installing components
based on user'slocale
Thanks, but I need to know the country and I don't really care
about the language. I will have many systems where the language may be
set to English but I will need different values in the registry.
Scott
On 6/6/07, Rennie Petersen <[EMAIL PROTECTED]> wrote:
I do something similar, based (partly) on the
UserLanguageID property.
I have a registry value, Name=Language, that should
contain the code "en" for English or "da" for Danish.
See here:
http://www.merlinia.com/mdt/WiXTutorial3.msl
In my MSI, the UserLanguageID property is only made use
of if the UI is invoked. (I query the property in the Welcome dialog
box.) But it should also be possible to make use of this property in
MSIs irrespective of whether the UI is invoked or not.
Rennie
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Palmer
Sent: 6. juni 2007 04:08
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Conditionally installing
components based on user'slocale
As part of my setup I would like to write
certain registry values depending on the country setting of the OS.
E.g. for North American users I might set a registry value to 1, for
European users the value would be set to 2.
Is there an easy way to do this without writing
a custom action?
Failing that, is there a custom action that can
be written easily?
Thanks,
Scott
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users