The <Publish> internally calls something like the MsiDoAction api, and it
can only access Immediate actions (since deferred/commit/rollback actions
can only be scheduled during InstallExecuteSequence between
InstallInitialize and InstallFinalize).

Some more details are here:
http://msdn.microsoft.com/en-us/library/aa368322(VS.85).aspx.
Publish/@Event='DoAction' is the "DoAction ControlEvent" in MSDN.

-----Original Message-----
From: Stefan Chipilov [mailto:[email protected]] 
Sent: Thursday, September 24, 2009 1:52 PM
To: [email protected]
Subject: [WiX-users] How does the <Publish> element work

Hi,

I have a general question about using the <Publish> element to invoke custom
actions. I've implemented the steps listed in the well-known WiX v3 tutorial
(http://www.tramontana.co.hu/wix/lesson8.php) to launch an installed app
after the user clicks Finish, however, I don't understand exactly how the
custom action works. If I open my MSI with ORCA I don't see that custom
action scheduled in any sequence, so I was wondering how does the <Publish>
element invoke that custom action? How is it sequenced? Do the same rules
apply to the action when it is immediate, deferred or commit (the tutorial
is using the default, which as far as I know is immediate)? And is there a
way to implement the same functionality using only the <CustomAction> and
<Custom> elements?
Thank you.

Regards,
    Stefan
----------------------------------------------------------------------------
--
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to