When UI is in use during installation (UI level is not None), Windows Installer 
starts with actions from InstallUISequence table. In case when UI level is set 
to None, you still want to schedule custom action in InstallExecuteSequence 
table.  In that case you may want Execute attribute to be "firstSequence" 
depending on if you want or don't want custom action to be executed twice.
Also, if you want to run your custom action as early as possible, you probably 
want to schedule it before LaunchConditions.

Alex



-----Original Message-----
From: taras [mailto:osh...@gmail.com] 
Sent: Monday, January 26, 2009 10:38 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] CustoAction as early as possible


Hi,

I am trying to invoke CA as early as possible. Ideally on msi startup but on
showing the first UI dialog will do.

<InstallExecuteSequence >
      <Custom Action="MyAction" Before="InstallInitialize">(NOT
Installed)</Custom>
</InstallExecuteSequence>

<CustomAction Id="MyAction" BinaryKey="MyAction_File" DllEntry="MyAction"
Execute="immediate" Return="asyncNoWait"  />

The code above executes MyAction after all UI dialogs "finished". I guess
standard action "InstallInitialize" is not good for this.

What would be the best approach to solve this problem.

Any idea will be appreciated.
--
View this message in context: 
http://n2.nabble.com/CustoAction-as-early-as-possible-tp2222674p2222674.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to