I purchased the book WIX 3.6: A Developer's Guide to Windows Installer XML.
In chapter 16 it explains, step by step, how to pass variables to the WIX
XML from a custom BA. In the example they are using bindings for setting the
variable but in my custom BA I set them in C# code.
--
View this mes
I also removed:
And it seems to work without running NetFx on a system that has Fx support.
But I need to test this more next week.
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Passing-Variables-from-C-custom-BA-to-WIX-tp7596113p7596194.htm
When I say that it 'worked' I mean on a Windows 8 x64, with build in netfx4x
support, the mba runs and NetFx40 setup is not launched. On Windows 7 x6x
with no NetFx support installed, the mba prereq dialog prompts the user to
allow NetFx to be installed, then it is installed and my mba is then
lau
In regard to the above discussion about your mba code, I was recently looking
at similar code in the wix src\Setup\WixBA\InstallViewModel.cs which has the
following code:
private void PlanPackageBegin(object sender,
PlanPackageBeginEventArgs e)
{
if
(WixBA.Model.Engine.
In the Bundle element, or a referenced fragment, use a Variable element and
use Override='yes'
or
For control logic in InstallCondition I prefer numeric, but if the variable
is to be passed to MsiProperty use a string.
In the mba, in OnDetectComplete (or wherever you want after Burn ini
Ok, I ran the debugger and to my surprise, this executes after U click the
InstallA button. I was thought this would run before any buttons were
clicked.
So, in trying to better understand how passing parameters work, what command
can I use to pass variables from my wpf application to my WIX scri
I don't see anything obvious. Debugger is probably required.
-Original Message-
From: linos [mailto:lino...@hotmail.com]
Sent: Thursday, July 31, 2014 20:09
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Passing Variables from C# custom BA to WIX
Hi Rob,
Thank You fo
Hi Rob,
Thank You for the insight on using PlanPackageBegin event. I tried your
recommendation in my wpf app, but haven't had much success. I have a simple
wix ba project that contains one bundle and chain element.
In my PlanPackageBegin event I have added source code to check for
Netfx4Full. T
since the variable is defined as a string, you need to add quotes around the
value that you are comparing the string too. I prefer to use html entities,
but you might prefer a different approach.
InstallCondition ="AToInstall="A""
If the variable were defined as a numeric, then the syntax is as
Don't use variables. Process the PlanPackageBegin event and tell the engine the
state of the package.
-Original Message-
From: linos [mailto:lino...@hotmail.com]
Sent: Wednesday, July 30, 2014 13:24
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Passing Variables f
I'm currently learning how to implement custom BA's through WIX and happen to
run into a road block. I've created a custom GUI through WPF and need pass
back to the WIX bootstrapper app, variables that I set in the C#
application.
Here is my C# function that calls the Bootstrapper app
private voi
11 matches
Mail list logo