Microsoft Platform SDK contains an example of setup.exe with source codes.

http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en

You may have to extend the sample to support multiple languages.

To obtain the appropriate default LANGID for the setup.exe, use one of the 
following function.

GetUserPreferredUILanguages in Vista
GetUserDefaultUILanguage in Windows Me, Windows 2000 or later
GetUserDefaultLangID in Windows 98

As the availability of functions are depends on the system, use GetProcAddress 
from kernel32.dll for function pointer and use the best available function. 
(better not to use GetOSVersion explicitly in this case)

Once you get the LANGID(x), and among the LANGID(y) values available in your 
setup (MSI files), find the best match of the language by finding:

1. Exact match (x == y)
2. Same primary language id PRIMARYLANGID(x) == PRIMARYLANGID(y),
   except for some languages, which cannot be substituted by PRIMARYLANGID,
e.g. Simplified Chinese and Traditional Chinese should be not treated as an 
alternative.

Once you find the best 'y' value:

1. If you have language transforms, use MST for 'y'
2. Or launch separate MSI for 'y'


Chesong Lee

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Petrut Andrei
Sent: Friday, August 25, 2006 9:35 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Bootstrapper that detects the system language

 Tell me please how to create a bootstrapper that
detects the system language. Give me some tutorials or
references. If you have done this before, show me some examples.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to