It works in OnDetectComplete!!!  Thanks everyone for all the help.  One 
question though:

In my HyperlinkSidebarTheme wxl's, I use [WixBundleName] in several strings 
(Caption, Title).  If I use one of those strings in value of <Window> in my 
HyperlinkSidebarTheme.xml, what is shown at install time in the installer 
window titlebar is the value I hardcoded into the Name attribute of my <Bundle> 
element.  Using those same strings in a <text> element on the Install page, the 
value I set in BAFunctions.dll is shown.

So, I assume OnDetectComplete is too late for <Window>.  Can anyone tell me if 
WixStdBALanguageId is guaranteed to be set to the user’s language at an earlier 
stage?  Is OnDetect a safe place to check WixStdBALanguageId and set 
WixBundleName?

Also, there is no OnDetectBegin in WixBootstrapperBAFunction.cpp.  If that’s 
what I should use, I assume I just create it patterned after OnDetect?


> On Apr 2, 2015, at 9:01 AM, Phill Hogland <phogl...@rimage.com> wrote:
> 
> OnDetectComplete handler is safe.
> 
> OnDetectBegin if you know that WixStdBALanguageId has been initialized prior
> to OnDetectBegin.
> 
> 
> 
> --
> View this message in context: 
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/BAFunctions-dll-to-set-WixBundleName-from-the-language-of-the-user-s-computer-tp7599747p7599812.html
> Sent from the wix-users mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to