<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/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>From MSI to WiX, Part 5 - Custom actions:  Introduction</title><link>http://blogs.technet.com/alexshev/archive/2008/02/21/from-msi-to-wix-part-5-custom-actions.aspx</link><description>The main page for the series is here . Introduction Although standard actions are sufficient to execute an installation in most cases, custom actions enable the author of an installation package to extend the capabilities of standard actions by including</description><dc:language>ru-RU</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: From MSI to WiX, Part 5 - Custom actions:  Introduction</title><link>http://blogs.technet.com/alexshev/archive/2008/02/21/from-msi-to-wix-part-5-custom-actions.aspx#3241148</link><pubDate>Thu, 14 May 2009 14:29:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3241148</guid><dc:creator>Simon Reid</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;I'm trying to get a custom action type 2 working but it keeps failing with error 1721. Do you have any idea why this is? Here is my code.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&amp;lt;Binary Id=&amp;quot;MyCA&amp;quot; SourceFile=&amp;quot;C:\temp\MyCA.bat&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;CustomAction Id=&amp;quot;DoSomething&amp;quot; BinaryKey=&amp;quot;MyCA&amp;quot; ExeCommand=&amp;quot;&amp;quot; Execute=&amp;quot;deferred&amp;quot; Return=&amp;quot;check&amp;quot; Impersonate=&amp;quot;no&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;InstallExecuteSequence&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;Custom Action=&amp;quot;DoSomething&amp;quot; After=&amp;quot;InstallFiles&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/InstallExecuteSequence&amp;gt;&lt;/p&gt;</description></item><item><title>re: From MSI to WiX, Part 5 - Custom actions:  Introduction</title><link>http://blogs.technet.com/alexshev/archive/2008/02/21/from-msi-to-wix-part-5-custom-actions.aspx#3241276</link><pubDate>Thu, 14 May 2009 18:36:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3241276</guid><dc:creator>Alex Shevchuk</dc:creator><description>&lt;P&gt;Usually, error 1721 means either problem with the script or some sort of permission issue.&lt;/P&gt;
&lt;P&gt;Your custom action is deferred, non-impersonated action, so it runs elevated under Local System account on Vista.&lt;/P&gt;
&lt;P&gt;Things I would check:&lt;/P&gt;
&lt;P&gt;- MyCA.bat is runnable outside of the installer (does not have any spelling/wrong commands issues)&lt;/P&gt;
&lt;P&gt;- Script in MyCA.bat does not access any network resources&lt;/P&gt;
&lt;P&gt;- Just in case, run installation from command prompt which is started under Administrator privileges&lt;/P&gt;
&lt;P&gt;- If you use Vista, try to turn off UAC&lt;/P&gt;
&lt;P&gt;- Try to disable anti-virus software (if computer is running any)&lt;/P&gt;
&lt;P&gt;Sorry, you will have to debug this issue. &amp;nbsp;There is no definite answer for this error code.&lt;/P&gt;
&lt;P&gt;Alex&lt;/P&gt;</description></item></channel></rss>