Re: [WiX-users] how to define a custom variable in bundle.wxs, and get its value in BAFunctions.dll?

2015-04-15 Thread Phill Hogland
You posted: lt;Variable Name=MyVariable Value=MyValue / I set bal:Overridable='yes' on any variable I create in the Bundle and interact with in the bafunctions.dll or mba. lt;Variable Name=MyVariable Value=MyValue bal:Overridable='yes'/ And since I also read threads about Burn's functionality to

Re: [WiX-users] how to define a custom variable in bundle.wxs, and get its value in BAFunctions.dll?

2015-04-15 Thread David Burson
Thanks for the tip, Phil. A couple questions about that: I assume without bal:Overridable=“yes”, my Variable’s are really constants? In this particular case, I just need constants. I have to declare them in my bundle.wxs so I can use them in my .wxl’s that localize my theme. For example, I

Re: [WiX-users] how to define a custom variable in bundle.wxs, and get its value in BAFunctions.dll?

2015-04-15 Thread Phill Hogland
My comment about using persisted variables is based on this thread http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-Resume-Installation-Plan-td7579146.html#a7579182 , and posibly others that I may have stumbled across. I transitioned from using a bafunctions.dll (with Wix 3.7

Re: [WiX-users] how to define a custom variable in bundle.wxs, and get its value in BAFunctions.dll?

2015-04-14 Thread David Burson
Don’t know what I was doing wrong, but since you guys said it should work I tried again, and it did. Thanks very much - that really simplifies things! David On Apr 12, 2015, at 7:52 PM, Sean Hall r.sean.h...@gmail.com wrote: This should just work. I'm guessing you've put the Variable in a

Re: [WiX-users] how to define a custom variable in bundle.wxs, and get its value in BAFunctions.dll?

2015-04-12 Thread Sean Hall
This should just work. I'm guessing you've put the Variable in a Fragment that isn't getting pulled in. Does the variable show up at the end of the log? On Fri, Apr 3, 2015 at 5:17 PM, roberthyang robert_y...@agilent.com wrote: This worked fine for us inside OnDetectComplete on Wix 3.8

[WiX-users] how to define a custom variable in bundle.wxs, and get its value in BAFunctions.dll?

2015-04-03 Thread David Burson
In the bundle I’ve tried Variable Name=MyVariable Value=MyValue /, and tried reading it in bafunctions.dll with LPWSTR my_variable = NULL; BalGetStringVariable(LMyVariable, my_variable); But that doesn’t work. Is there any way to do it?

Re: [WiX-users] how to define a custom variable in bundle.wxs, and get its value in BAFunctions.dll?

2015-04-03 Thread roberthyang
This worked fine for us inside OnDetectComplete on Wix 3.8 (released version). For example : // Check if Acrobat is installed by reading variable. LPWSTR sczAcrobatValue = NULL; BalGetStringVariable(LAcrobatInstalled, sczAcrobatValue); BalExitOnFailure(hr, Failed