Thank you ever so much, Edwin, this is exactly what I needed. Works like
magic.
Alexander

On 23 February 2010 18:39, Castro, Edwin G. (Hillsboro) <
edwin.cas...@fiserv.com> wrote:

> To reiterate what Phil said earlier, you need two custom actions.
> CustomActionA will run in immediate mode and be scheduled just before
> CustomActionB which will run in deferred mode. The purpose of CustomActionA
> is to get all the data needed by CustomActionB.
>
> CustomActionA will want to create a CustomActionData object and add all the
> data needed by CustomActionB. When all the data is captured you then want to
> call session.DoAction("CustomActionB", customActionData).
>
> CustomActionB will then access the data added to the CustomActionData
> object above using the session.CustomActionData["id"] syntax.
>
> Example:
>
> public class CustomActionExample
> {
>    private const string INSTALLDIR = "INSTALLDIR";
>
>    [CustomAction]
>    public static ActionResult CustomActionA(Session session)
>    {
>        var customActionData = new CustomActionData();
>        customActionData.Add(INSTALLDIR, session[INSTALLDIR]);
>        session.DoAction("CustomActionB", customActionData);
>        return ActionResult.Success;
>    }
>
>    [CustomAction]
>    public static ActionResult CustomActionB(Session session)
>    {
>        var installDir = session.CustomActionData[INSTALLDIR];
>        // use installDir here...
>    }
> }
>
> Note: I wrote the example from memory... There could be errors...
>
> Edwin G. Castro
> Software Developer - Staff
> Electronic Banking Services
> Fiserv
> Office: 503-746-0643
> Fax: 503-617-0291
> www.fiserv.com
>
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to