I know there were some discussions before regarding the proper use of
CompareString() in the Wix sources, but I can't seem to find them.  I
found a problem running the setupexe.exe in Wix on Windows 2000.  The
command line parsing which uses CompareString is failing because of the
LOCALE_INVARIANT which apparently is only available on Windows XP and
higher.

According to MSDN it should be like this:

On Windows XP and later: 
        CompareString(LOCALE_INVARIANT, NORM_IGNORECASE, mystr, -1,
_T("InLap"), -1);
For earlier operating systems: 
        DWORD lcid = MAKELCID(MAKELANGID(LANG_ENGLISH,
SUBLANG_ENGLISH_US), SORT_DEFAULT);
            CompareString(lcid, NORM_IGNORECASE, mystr, -1, _T("InLap"),
-1);

Is this a bug in Wix, or was it designed this way?

Thanks,
Mike Ballou

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to