<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Mailbag: How to set the NoImpersonate flag for a custom action in Visual Studio 2005</title><link>http://blogs.msdn.com/b/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx</link><description>Question: 
 I have built an installer using the Visual Studio 2005 setup project wizard. It installs correctly on Windows XP but fails on Windows Vista . I investigated and found that the failure on Windows Vista is caused by a custom action that fails</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Mailbag: How to set the NoImpersonate flag for a custom action in Visual Studio 2005</title><link>http://blogs.msdn.com/b/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx#10144629</link><pubDate>Wed, 23 Mar 2011 02:12:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10144629</guid><dc:creator>Aaron Stebner</dc:creator><description>&lt;p&gt;Hi Naga - If you&amp;#39;ve updated your MSI and it is still failing, it is possible that the issue described in this blog post is not the root cause of the failure. &amp;nbsp;Also, the issue related to teh NoImpersonate flag only affects Windows Vista and higher, and should not be an issue on Windows XP.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d suggest looking in the verbose MSI log to see if there is any useful error information to help narrow down the root cause further. &amp;nbsp;You can use steps like the ones listed at &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/astebner/archive/2005/03/29/help-me-help-you-if-you-have-setup-bugs.aspx"&gt;blogs.msdn.com/.../help-me-help-you-if-you-have-setup-bugs.aspx&lt;/a&gt; to gather a verbose MSI log file from your installer.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10144629" width="1" height="1"&gt;</description></item><item><title>re: Mailbag: How to set the NoImpersonate flag for a custom action in Visual Studio 2005</title><link>http://blogs.msdn.com/b/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx#10144126</link><pubDate>Tue, 22 Mar 2011 03:11:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10144126</guid><dc:creator>Naga</dc:creator><description>&lt;p&gt;Thanks for your quick reply Aaron. Unfortunatly, this solution is not resolving the issue I have. My msi still errors out with 2869. This error very recentand all was well until occur some Microsoft security patches for XP SP3 was installed( We are yet to determine which security patch as a number of them have been installed.) &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10144126" width="1" height="1"&gt;</description></item><item><title>re: Mailbag: How to set the NoImpersonate flag for a custom action in Visual Studio 2005</title><link>http://blogs.msdn.com/b/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx#10144096</link><pubDate>Tue, 22 Mar 2011 00:44:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10144096</guid><dc:creator>Aaron Stebner</dc:creator><description>&lt;p&gt;Hi Naga - No, the .js file will not be copied to the user&amp;#39;s system. &amp;nbsp;It is only used at build time to make some modifications to the .msi file. &amp;nbsp;To verify the changes in the .msi, you would need to look in the .msi file after running the .js file on it. &amp;nbsp;Specifically, the settings for the Type column of the CustomAction table will be changed. &amp;nbsp;You can use the Orca tool in the Windows SDK (&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/library/aa370557.aspx"&gt;msdn.microsoft.com/.../aa370557.aspx&lt;/a&gt;) to view the tables in a .msi file.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10144096" width="1" height="1"&gt;</description></item><item><title>re: Mailbag: How to set the NoImpersonate flag for a custom action in Visual Studio 2005</title><link>http://blogs.msdn.com/b/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx#10143879</link><pubDate>Mon, 21 Mar 2011 15:47:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10143879</guid><dc:creator>Naga</dc:creator><description>&lt;p&gt;Hello Aaron, &lt;/p&gt;
&lt;p&gt;How do I check if the noimpersonate is set correctly in the MSI. I followed your steps and rebuilt the solution and the build succeeded. Now when the client installs the msi, will they see this .js file copied down anywhere in their system? &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10143879" width="1" height="1"&gt;</description></item><item><title>re: Mailbag: How to set the NoImpersonate flag for a custom action in Visual Studio 2005</title><link>http://blogs.msdn.com/b/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx#10094606</link><pubDate>Mon, 22 Nov 2010 10:31:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10094606</guid><dc:creator>Andy P</dc:creator><description>&lt;p&gt;Just to confirm that having read the thread all the way through I included the js file into my deployment folder and it all worked first time. &amp;nbsp;Many thanks all for this thread. &amp;nbsp;Its a serious time-saver! &amp;nbsp;A&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10094606" width="1" height="1"&gt;</description></item><item><title>re: Mailbag: How to set the NoImpersonate flag for a custom action in Visual Studio 2005</title><link>http://blogs.msdn.com/b/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx#10058629</link><pubDate>Mon, 06 Sep 2010 23:18:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10058629</guid><dc:creator>Aaron Stebner</dc:creator><description>&lt;p&gt;Hi Santosh - You&amp;#39;re going to want to run this script as a post-build step, not a pre-build step. &amp;nbsp;The script updates the MSI that is produced by the build process, so running it as a pre-build step will not work because the MSI won&amp;#39;t be built yet. &amp;nbsp;I&amp;#39;d suggest making sure that you&amp;#39;re following the exact steps listed in this blog post so that it will run the script as a post-build step. &amp;nbsp;Also, the error message lists the full path where it expects to find the script, so I&amp;#39;d suggest double-checking that the script is saved at that exact path on your computer.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10058629" width="1" height="1"&gt;</description></item><item><title>re: Mailbag: How to set the NoImpersonate flag for a custom action in Visual Studio 2005</title><link>http://blogs.msdn.com/b/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx#10058460</link><pubDate>Mon, 06 Sep 2010 11:12:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10058460</guid><dc:creator>Santosh</dc:creator><description>&lt;p&gt;Hi Aaron&lt;/p&gt;
&lt;p&gt;When I build the MSI installer project it shows following error.&lt;/p&gt;
&lt;p&gt;Error 1 &amp;#39;PreBuildEvent&amp;#39; failed with error code &amp;#39;1&amp;#39; &amp;#39;Unspecified error&amp;#39;.&lt;/p&gt;
&lt;p&gt;Cause of error : Can not find script file &amp;quot;E:\del\AdobeVS2005\AdobeSerivce\DeletePDF\CustomAction_NoImpersonate.js&amp;quot;. &lt;/p&gt;
&lt;p&gt;I am running 2 projects at the time of installation.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Santosh Patil.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10058460" width="1" height="1"&gt;</description></item><item><title>re: Mailbag: How to set the NoImpersonate flag for a custom action in Visual Studio 2005</title><link>http://blogs.msdn.com/b/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx#10054392</link><pubDate>Thu, 26 Aug 2010 00:20:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10054392</guid><dc:creator>Aaron Stebner</dc:creator><description>&lt;p&gt;Hi Duncan Hornby - Changing the NoImpersonate flag will not cause any problems on Windows XP. &amp;nbsp;If that setting is what is causing the problem on Windows 7, then making the change listed in this blog post should allow the MSI to install on any OS. &amp;nbsp;Please note that you should try to confirm that this really is the root cause of the install failure before trying to make this type of change though. &amp;nbsp;You can do that by looking at the verbose MSI log file from a failing installation and searching for the string &amp;quot;return value 3&amp;quot;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10054392" width="1" height="1"&gt;</description></item><item><title>re: Mailbag: How to set the NoImpersonate flag for a custom action in Visual Studio 2005</title><link>http://blogs.msdn.com/b/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx#10054285</link><pubDate>Wed, 25 Aug 2010 19:21:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10054285</guid><dc:creator>Duncan Hornby</dc:creator><description>&lt;p&gt;Hi Aaron,&lt;/p&gt;
&lt;p&gt;Can I confirm something? I have built a .Net extension for some software called ArcGIS. I built an installer and everything worked fine on XP systems. Someone tried to install it on a Windows 7 system and got the error message. So I am looking at your blog as a solution. What I want to know is if I implement the above does that mean the installer will only work on Vista/Window 7 OS or will it still work on XP systems too?&lt;/p&gt;
&lt;p&gt;Duncan&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10054285" width="1" height="1"&gt;</description></item><item><title>re: Mailbag: How to set the NoImpersonate flag for a custom action in Visual Studio 2005</title><link>http://blogs.msdn.com/b/astebner/archive/2006/10/23/mailbag-how-to-set-the-noimpersonate-flag-for-a-custom-action-in-visual-studio-2005.aspx#9608412</link><pubDate>Wed, 13 May 2009 03:07:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9608412</guid><dc:creator>Aaron Stebner</dc:creator><description>&lt;p&gt;Hi Lovecreatesbeauty@hotmail.com - This error essentially means that the custom action is failing, but doesn't provide any details about the root cause. &amp;nbsp;There could be a lot of possible causes for this type of error, depending on what your custom action is designed to do. &amp;nbsp;You will probably need to try to debug your custom action in more detail to narrow this down further. &amp;nbsp;You can do this by adding logging to your custom action or adding a dialog box at the beginning of your custom action so you can attach a debugger. &amp;nbsp;You could also try using the MsiBreak environment variable (described at &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/library/aa368264.aspx"&gt;http://msdn.microsoft.com/library/aa368264.aspx&lt;/a&gt;).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9608412" width="1" height="1"&gt;</description></item></channel></rss>