Here's what I would do:
In OnDetectTargetMsiPackage gather the productcode and check the installed
state of all of the patches on that product. Store that in memory.
In OnPlanTargetMsiPackage I would prevent an uninstall of patch 2 for the
indicated productcode if detect indicated that patch 3 was present (and I
hadn't already received an OnPlanTargetMsiPackage for removal of patch 3 for
that same productcode).
If the OnPlan* callbacks aren't ordered that way then I would rerun the plan in
OnPlanComplete if needed.
Then again I'm not yet a burn expert. Some of the others on the list may have a
better idea.
Please report back if this works or not.
> Date: Tue, 8 Oct 2013 09:02:21 -0700
> From: tomer.d...@intergraph.com
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Sequencing Patches with MBA
>
>
> Ok,all looks good.all work for now...one issue left is out of order
> uninstalation
>
> can you please elaborate on:
>
> "OnPlanTargetMsiPackage are used to allow you to gather and control if any
> given MSP will be added/removed from any given MSI,"
>
> Assuming I install Patch 1, 2, 3
>
> How can i prevent uninstalling patch 2 before 3?
>
> Thanks much
>
>
>
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Sequencing-Patches-with-MBA-tp7589408p7589523.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users