This is more of a Windows Installer question than a WiX question, but I 
am working on a CA for use with WiX, so please bear with me.

I have a binary entry point that I need to schedule more than once 
during the execution sequence in order to process and set installer 
properties in the correct order (and when they are available); 
scheduling these actions multiple times is how I get around chicken-egg 
property dependencies that are interspersed with other actions (e.g. 
once before AppSearch and again before SchedXmlConfig).  In order to do 
so, I am using the following pattern:

<Binary Id="MyCaDll"/>

<CustomAction Id="MyCaDll_1" BinaryKey="MyCaDll" DllEntry="DoStuff" 
Execute="firstSequence" Return="check" SuppressModularization="yes" />
<CustomAction Id="MyCaDll_2" BinaryKey="MyCaDll" DllEntry="DoStuff" 
Execute="firstSequence" Return="check" SuppressModularization="yes" />

<InstallExecuteSequence>
<Custom Action="MyCaDll_1" Before="AppSearch">VersionNT &gt; 400</Custom>
<Custom Action="MyCaDll_2" Before="SchedXmlConfig">VersionNT &gt; 
400</Custom>
</InstallExecuteSequence>

I am storing custom table data that control the actions of the CA, keyed 
by "MyCaDll_1", "MyCaDll_2", etc.  Is there any better way to know which 
one I am executing besides setting CustomActionData?  I know I can do this:

<Property Id="MyCaDll_1" Value="MyCaDll_1" />
<Property Id="MyCaDll_2" Value="MyCaDll_2" />

But that seems silly; then again, it may be the only way.  In review, I 
even answered this question once for someone else, using this method, so 
I fear I already know the answer...

Thanks,

-- 

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


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to