<?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>Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx</link><description>Omar had a problem: he was using VS 2005 SP1 on Vista to build his Windows Installer setup package for VSTO Outlook Add-In. When he tried to install the package - it was always failing with code 2869. He contacted me with "what is the deal?", I tracked</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Cheat Codes &amp;raquo; Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#1794276</link><pubDate>Sat, 03 Mar 2007 10:55:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1794276</guid><dc:creator>Cheat Codes » Windows Installer fails on Vista with 2869 error code.</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://cheatcodedirect.com/windows-installer-fails-on-vista-with-2869-error-code/"&gt;http://cheatcodedirect.com/windows-installer-fails-on-vista-with-2869-error-code/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#1805190</link><pubDate>Sun, 04 Mar 2007 21:48:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1805190</guid><dc:creator>Dennis Wallentin</dc:creator><description>&lt;p&gt;Misha,&lt;/p&gt;
&lt;p&gt;Thanks for the solution. When can we expect to have this issue fixed?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Dennis&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#1846505</link><pubDate>Fri, 09 Mar 2007 21:19:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1846505</guid><dc:creator>Misha Shneerson</dc:creator><description>&lt;p&gt;I just talked to the guys from the setup team and the issue will not be solved for Visual Studio 2005 - only for the next release codenamed &amp;quot;Orca&amp;quot;. But please see Omar's blog (&lt;a rel="nofollow" target="_new" href="http://www.shahine.com/omar/VSTOAddinsAndVista.aspx"&gt;http://www.shahine.com/omar/VSTOAddinsAndVista.aspx&lt;/a&gt;) how to automate this workaround.&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#1858638</link><pubDate>Sun, 11 Mar 2007 14:14:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1858638</guid><dc:creator>Dennis Wallentin</dc:creator><description>&lt;p&gt;Thanks Misha and I have already tested the suggestion workaround with good outcome :-)&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Dennis&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#2627886</link><pubDate>Mon, 14 May 2007 19:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2627886</guid><dc:creator>yogesh gaur</dc:creator><description>&lt;p&gt;This soultion works for me on vista - 32 bit. For some reason, this doesn't work for me on x64. Any insight?&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Yogesh&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#3014324</link><pubDate>Fri, 01 Jun 2007 01:52:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3014324</guid><dc:creator>ViniS</dc:creator><description>&lt;p&gt;I'm trying to deploy a VSTO 2005 Outlook Add-In. My add in includes Custom Configuration Sections in the App.config file.&lt;/p&gt;
&lt;p&gt;If I deploy my add in without the custom configuration section functionality it behaves as expected; however when the custom configuration section was included it stopped working. Any insight?&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#3567592</link><pubDate>Wed, 27 Jun 2007 20:21:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3567592</guid><dc:creator>Kljuka</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have the same problem with already compiled comercial program SYNCING.NET but I'm not a developer so I can't fix it and I would really like to use it on my Vista. So is there a way for me to somehow install this product on my computer?&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#3683545</link><pubDate>Wed, 04 Jul 2007 12:12:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3683545</guid><dc:creator>Jonas G.</dc:creator><description>&lt;p&gt;The other way to deal with this problem for those who are not developers.&lt;/p&gt;
&lt;p&gt;Disable User Account Control in Windows Vista. A number of ways to do this can be found at&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.petri.co.il/disable_uac_in_windows_vista.htm"&gt;http://www.petri.co.il/disable_uac_in_windows_vista.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then run the installer. If everything's OK, you should be able to install the application successfully.&lt;/p&gt;
&lt;p&gt;Do not forget to enable User Account Control after you install the application (for security reasons).&lt;/p&gt;
&lt;p&gt;I hope this will be useful.&lt;/p&gt;
&lt;p&gt;Thank you, Misha, for the solution for developers.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jonas&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#4766367</link><pubDate>Wed, 05 Sep 2007 20:03:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4766367</guid><dc:creator>Steffen</dc:creator><description>&lt;p&gt;Since I had the same problems, I combined the 2 scripts, Aaron and Misha proposed to 1. &lt;/p&gt;
&lt;p&gt;For those, who are not developers and try to install an existing Msi, just run the script on the msi:&lt;/p&gt;
&lt;p&gt;cscript &amp;lt;path to the script&amp;gt; &amp;lt;path to the msi&amp;gt;&lt;/p&gt;
&lt;p&gt;Here is the script, most of it is taken from Aarons post of setting the NoImpersonate-Flag:&lt;/p&gt;
&lt;p&gt;//prepare MSI-Files for use on Vista-Systems&lt;/p&gt;
&lt;p&gt;//Visual Studio forgot to include 2 things:&lt;/p&gt;
&lt;p&gt;// 1. Mark Custom Actions as NoImpersonate, otherwise an Security-Error results in Error 2869&lt;/p&gt;
&lt;p&gt;// 2. User-Exceptions in CustomActions are not shown. Instead a plain Error 2869 without description occurs. &lt;/p&gt;
&lt;p&gt;// &amp;nbsp; &amp;nbsp; Therefore Error-Message for this case has to be defined&lt;/p&gt;
&lt;p&gt;// Constant values from Windows Installer&lt;/p&gt;
&lt;p&gt;var msiOpenDatabaseModeTransact = 1;&lt;/p&gt;
&lt;p&gt;var msiViewModifyInsert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 1;&lt;/p&gt;
&lt;p&gt;var msiViewModifyUpdate &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 2;&lt;/p&gt;
&lt;p&gt;var msiViewModifyAssign &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 3;&lt;/p&gt;
&lt;p&gt;var msiViewModifyReplace &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 4;&lt;/p&gt;
&lt;p&gt;var msiViewModifyDelete &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 6;&lt;/p&gt;
&lt;p&gt;var msidbCustomActionTypeInScript &amp;nbsp; &amp;nbsp; &amp;nbsp; = 0x00000400;&lt;/p&gt;
&lt;p&gt;var msidbCustomActionTypeNoImpersonate &amp;nbsp;= 0x00000800;&lt;/p&gt;
&lt;p&gt;if (WScript.Arguments.Length != 1)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	WScript.StdErr.WriteLine(WScript.ScriptName + &amp;quot; file&amp;quot;);&lt;/p&gt;
&lt;p&gt;	WScript.Quit(1);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;var filespec = WScript.Arguments(0);&lt;/p&gt;
&lt;p&gt;var installer = WScript.CreateObject(&amp;quot;WindowsInstaller.Installer&amp;quot;);&lt;/p&gt;
&lt;p&gt;var database = installer.OpenDatabase(filespec, msiOpenDatabaseModeTransact);&lt;/p&gt;
&lt;p&gt;var sqlSelectCustomActions = &amp;quot;SELECT `Action`, `Type`, `Source`, `Target` FROM `CustomAction`&amp;quot;;&lt;/p&gt;
&lt;p&gt;var view&lt;/p&gt;
&lt;p&gt;var record&lt;/p&gt;
&lt;p&gt;var view2&lt;/p&gt;
&lt;p&gt;var sqlInsertErrorMsg= &amp;quot;INSERT INTO `Error` (`Error`, `Message`) VALUES (1001, 'Error [1]: [2]')&amp;quot;;&lt;/p&gt;
&lt;p&gt;try&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	// 1. problem: CustomActions in Vista have to run with NoImpersonate &lt;/p&gt;
&lt;p&gt;	view = database.OpenView(sqlSelectCustomActions);&lt;/p&gt;
&lt;p&gt;	view.Execute();&lt;/p&gt;
&lt;p&gt;	record = view.Fetch();&lt;/p&gt;
&lt;p&gt;	while (record)&lt;/p&gt;
&lt;p&gt;	{&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp;if (record.IntegerData(2) &amp;amp; msidbCustomActionTypeInScript)&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;record.IntegerData(2) = record.IntegerData(2) | msidbCustomActionTypeNoImpersonate;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	view.Modify(msiViewModifyReplace, record);&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;record = view.Fetch();&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;	view.Close();&lt;/p&gt;
&lt;p&gt;	//2. problem: explicit format User-Errors, otherwise they are not visible in Vista, the User just sees Error 2869&lt;/p&gt;
&lt;p&gt;	view2=database.OpenView(sqlInsertErrorMsg);&lt;/p&gt;
&lt;p&gt;	view2.Execute();&lt;/p&gt;
&lt;p&gt;	view2.Close();&lt;/p&gt;
&lt;p&gt;	database.Commit();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;catch(e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	WScript.StdErr.WriteLine(e);&lt;/p&gt;
&lt;p&gt;	WScript.Quit(1);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#7285417</link><pubDate>Mon, 28 Jan 2008 14:18:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7285417</guid><dc:creator>Sameera</dc:creator><description>&lt;p&gt;Thanks Steffen!&lt;/p&gt;
&lt;p&gt;your script saved a lot work for me.&lt;/p&gt;
</description></item><item><title>Error 2869 when trying to install the Visual Basic Upgrade Companion</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#8673540</link><pubDate>Tue, 01 Jul 2008 01:22:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8673540</guid><dc:creator>Jose Aguilar's Blog</dc:creator><description>&lt;p&gt;A quick fix to help troubleshoot error 2869 when installing the VBUC 2.0.&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#8990875</link><pubDate>Wed, 08 Oct 2008 09:44:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8990875</guid><dc:creator>Alexey</dc:creator><description>&lt;p&gt;very easy solution was posted on Paulo Reichert's Blog&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.conchango.com/pauloreichert/archive/2006/11/21/Windows-Installer-MSI-packages-error-code-2869-on-Windows-Vista.aspx"&gt;http://blogs.conchango.com/pauloreichert/archive/2006/11/21/Windows-Installer-MSI-packages-error-code-2869-on-Windows-Vista.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;...The quick and dirty solution I found to make them install is to create a batch file with the following command:&lt;/p&gt;
&lt;p&gt;msiexec /i &amp;quot;path-to-package.msi&amp;quot;&lt;/p&gt;
&lt;p&gt;Save the file then right-click it and select &amp;quot;Run as Administrator&amp;quot;. That makes it work.&lt;/p&gt;
&lt;p&gt;...&amp;quot;&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#9702141</link><pubDate>Sat, 06 Jun 2009 01:01:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9702141</guid><dc:creator>Gustavo</dc:creator><description>&lt;p&gt;Quick solution: Right click on &amp;quot;setup.exe&amp;quot; file and select &amp;quot;Run as Administrator&amp;quot;.&lt;/p&gt;
</description></item><item><title>re: Windows Installer fails on Vista with 2869 error code.</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#9843139</link><pubDate>Tue, 21 Jul 2009 12:02:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9843139</guid><dc:creator>starter</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt; Gustavo said:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;Quick solution: Right click on &amp;quot;setup.exe&amp;quot; file and &amp;gt;&amp;gt;select &amp;quot;Run as Administrator&amp;quot;.&lt;/p&gt;
&lt;p&gt;may i know is this really work without using &amp;quot;msiexec&amp;quot;?&lt;/p&gt;
</description></item><item><title>Similar problem, but with Windows Server 2008</title><link>http://blogs.msdn.com/mshneer/archive/2007/03/02/windows-installer-fails-on-vista-with-2869-error-code.aspx#9845177</link><pubDate>Wed, 22 Jul 2009 22:46:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9845177</guid><dc:creator>smitty25</dc:creator><description>&lt;p&gt;Some helper would be appreciated... similar problem on Windows Server 2008....&lt;/p&gt;
&lt;p&gt;I have an MSI package that has a bunch of custom actions included with it. I applied the NoImpersonate and also the error message fix mentioned here to the MSI and that got it working under Windows Vista.&lt;/p&gt;
&lt;p&gt;My issue now is, the same MSI installer just hangs on Windows Server 2008 64-bit (no error messages at all, not even the 2869 error message). It doesn't seem like the error message fix I applied from here is giving me any feedback during the hang.&lt;/p&gt;
&lt;p&gt;Are there any other special properties that need set in an MSI for Windows Server 2008 64-bit?&lt;/p&gt;
&lt;p&gt;Anyone else seen this problem?&lt;/p&gt;
&lt;p&gt;I have read that invoking a 64-bit program from a 32-bit application can cause a hang but that doesn't seem to be the case in my custom actions.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
</description></item></channel></rss>