You can use the InstallCondition attribute of MsiPackage (or ExePackage or MsuPackage) to control whether a package is installed. If InstallCondition evaluates to true, then the package is installed, but if InstallCondition evaluates to false, then the package will be removed unless it's permanent. I have a few numeric variables that I set to 1 if I want certain packages installed, or 0 if I don't.
Alternatively, I think you can listen for the PlanPackageComplete event and force Burn to install or ignore a particular package from your bootstrapper application, though I haven't tried that myself. Nicholas On 11 December 2012 16:07, Bull, Thomas <thomas.b...@defensegp.com> wrote: > I am making a custom bootstrapper WPF UI to allow consumers to select > which MSIs and specific features within MSIs to install. I think I have my > head around how to select features within an MSI by setting > Engine.StringVariables["TEMPVAR"] and then setting an MSIProperty to that > Burn variable. I define the variable in my bundle.wxs like so: > > <Variable Name="TEMPVAR" Value="" Type="string" /> > > Please correct my logic if the above assumption is wrong! > > What I can't seem to figure out is how to conditionally install an MSI > based on a burn variable value. After I set the variable value I run > Engine.Detect() and then Engine.Plan(LaunchAction.Layout). However, I > don't see my variable's value updated in the log, nor do I see the > condition test executed. Can anyone provide some insight as how to proceed > with programmatically updating my burn plan? > > Thanks for the previous help and for taking the time with this question! > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users