I just tested:  BalGetStringVariable in BAFunctions.dll does NOT work to get a 
custom variable defined in the bundle using <Variable Name=“var_name” Value=“my 
value” />


> On Apr 3, 2015, at 9:20 AM, David Burson <david_bur...@ntm.org> wrote:
> 
> Yes, thanks, I did use that for WixBundleName.  But I’m talking about getting 
> a custom <Variable> from my bundle.wxs, not a "burn variable" (which I assume 
> means the built-in variables, which I believe in the Bundle are referenced as 
> <WixVariable>, not <Variable>).
> 
> Or can I use BalGetStringVariable to get a custom variable from my bundle, 
> too?
> 
> 
>> On Apr 3, 2015, at 9:12 AM, Phill Hogland <phogl...@rimage.com> wrote:
>> 
>> Look at the sample, in src\burn\Samples\bafunctions\readme.txt, it even gives
>> you the following example:
>> 
>> //---------------------------------------------------------------------------------------------
>>       // Example of reading burn variable.
>>       BalGetStringVariable(L"WixBundleName", &sczValue);
>>       BalExitOnFailure(hr, "Failed to get variable.");
>> 
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/m-pEngine-GetVariableString-syntax-tp7599831p7599837.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

------------------------------------------------------------------------------
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