[wix-users] How to identify the language of my msi
Mahesh Wickramasinghe
wickramasingha4u at gmail.com
Wed Oct 4 18:26:21 PDT 2017
Thank you.
I tried ProductLanguage property as David said. But it always gave me mu UI
language of the OS.
I am gong to use Jason's suggestion until find a better way.
On Thu, Oct 5, 2017 at 5:32 AM, David Watson via wix-users <
wix-users at lists.wixtoolset.org> wrote:
> Have you tried the ProductLanguage property?
> https://msdn.microsoft.com/en-us/library/windows/desktop/
> aa370856(v=vs.85).aspx
>
>
> run a verbose log to see what it gets set to.
>
>
>
> www.sdl.com
> SDL PLC confidential, all rights reserved. If you are not the intended
> recipient of this mail SDL requests and requires that you delete it without
> acting upon or copying any of its contents, and we further request that you
> advise us.
> SDL PLC is a public limited company registered in England and Wales.
> Registered number: 02675207.
> Registered address: SDL PLC, New Globe House, Vanwall Business Park,
> Vanwall Road, Maidenhead, SL6 4UB, U.K.
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Jason Beck via wix-users
> Sent: 04 October 2017 17:24
> To: Mahesh Wickramasinghe via wix-users <wix-users at lists.wixtoolset.org>
> Cc: Jason Beck <mrbass21 at gmail.com>
> Subject: Re: [wix-users] How to identify the language of my msi
>
> This is a great question and I hope someone has a better way to access
> this, cause I'd like to know.
>
> Can you create a variable in each localization file, like a variable
> called thisCultureCode, and then reference it with !(loc.thisCultureCode)?
>
> If that works, it's a crappy workaround, but it might work.
>
> On 10/4/2017 2:53 AM, Mahesh Wickramasinghe via wix-users wrote:
> > Hello,
> >
> > I made a msi and built it using 3 deference
> > languages(en-US;ja-JP;zh-CN) I am running a exe during install. so i
> used a custom action.
> > [ExeCommand="cmd.exe /c Util.exe] .
> >
> > Now i need to pass it the language, that the msi has built. like
> > [ExeCommand="cmd.exe /c Util.exe -l en-US] . But i don't how to do
> > that. is there a property or a way to find the language im running msi
> package?
> >
> > Thank you.
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
--
~මහේෂ්~
http://arunadeepa.blogspot.com/
More information about the wix-users
mailing list