<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Soledad Pano's Blog : Wix</title><link>http://weblogs.asp.net/spano/archive/tags/Wix/default.aspx</link><description>Tags: Wix</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Wix install sequence</title><link>http://weblogs.asp.net/spano/archive/2006/12/05/wix-install-sequence.aspx</link><pubDate>Tue, 05 Dec 2006 16:52:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3810408</guid><dc:creator>spano</dc:creator><author>spano</author><slash:comments>0</slash:comments><comments>http://weblogs.asp.net/spano/archive/2006/12/05/wix-install-sequence.aspx#comments</comments><description>&lt;p&gt;&lt;em&gt;&lt;font color="#808080"&gt;This post was originally published at &lt;/font&gt;&lt;/em&gt;&lt;a href="http://solepano.blogspot.com/"&gt;&lt;em&gt;&lt;font color="#808080"&gt;http://solepano.blogspot.com&lt;/font&gt;&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;
I am trying to figure out the exact behavor of the install sequence in the setup, as defined in a &lt;a href="http://wix.sourceforge.net/index.html" mce_href="http://wix.sourceforge.net/index.html"&gt;wix &lt;/a&gt;.wxs file. The confusion comes from the presence of the InstallUISequence and the InstallExecuteSequence tags, leaving aside the fact that there are actually four tags related to the actions sequence (AdminUiSequence and AdminExecuteSequence are used in administrative installs).  As it is said in the &lt;a href="http://www.tramontana.co.hu/wix/" mce_href="http://www.tramontana.co.hu/wix/"&gt;wix turorial&lt;/a&gt;, &lt;b&gt;"InstallExecuteSequence&lt;/b&gt; is always consulted by the  installer to determine the actions, &lt;b&gt;InstallUISequence&lt;/b&gt; is only considered when the installer runs in  full or reduced UI mode." So, if executing without user interface, the order is determined for the InstallExecuteSequence and no doubts remain. But, if executing in full or reduced UI mode, both sequences are consulted. So, what is the resulting order of execution? If an action is placed in both sequences, it is executed twice?&lt;br&gt;&lt;br&gt;As for the executing order, what I suppose happens is that all actions in the InstallUISequence are run first (since they gather the information required for the installation) and then those from the InstallExecuteSequence. But it is possible that some actions need to be executed before any UI dialog, so then we should place them in both sequences.&lt;br&gt;&lt;br&gt;If an action is placed in both sequences, they will be apparently executed twice. Al least one exception for this rule is the AppSearch action. In the &lt;a href="http://wix.sourceforge.net/manual-wix2/wix_xsd_appsearch.htm" mce_href="http://wix.sourceforge.net/manual-wix2/wix_xsd_appsearch.htm"&gt;schema reference&lt;/a&gt; it says: “AppSearch should be authored into the InstallUISequence table and InstallExecuteSequence table. The installer prevents The AppSearch action from running in the InstallExecuteSequence sequence if the action has already run in InstallUISequence sequence.” &lt;br&gt;&lt;br&gt;For custom actions, the &lt;a href="http://wix.sourceforge.net/manual-wix2/wix_xsd_customaction.htm" mce_href="http://wix.sourceforge.net/manual-wix2/wix_xsd_customaction.htm"&gt;execute attribute&lt;/a&gt; can be used for preventing the double execution.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3810408" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/spano/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/spano/archive/tags/Wix/default.aspx">Wix</category></item></channel></rss>