Matt,

You could always add the custom action id to the CustomActionData; that 
may be as simple as using a set property (type 51) custom action.  If 
you are setting up the CustomActionData for a deferred custom action via 
an immediate custom action, then you should already know the target 
custom action (otherwise it would be impossible to pass the deferred 
custom action any data at all); in that case, just tack the id onto the 
data.

Forgive me if you already know this, but the CustomActionData property 
for a custom action is set via a property with the same id as the custom 
action.  So, while it may seem redundant to have property ca1 which 
contains ca1, that's the way of Windows Installer.

Thanks,

Thomas S. Trias
Senior Developer
Artizan Internet Services
http://www.artizan.com/


-------- Original Message  --------
Subject: [WiX-users] Current executing action
From: Matt Ziegler <idaho...@gmail.com>
To: General discussion for Windows Installer XML toolset.   
 <wix-users@lists.sourceforge.net>
Date: 4/8/2009 1:58 PM
> Is there a method for getting the currently executing custom action name
> from within a custom action?
>
> So if custom actions ca1 and  ca2 call a dll function func1, I want to be
> able to determine from within func1 if it was called by ca1 or ca2.
>
> Thoughts?
>
> Matt

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to