<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.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>VS Web Deployment Projects</title><link>http://forums.asp.net/1020.aspx</link><description>General discussions of VS Web Deployment Projects</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Custom actions for a product upgrade</title><link>http://forums.asp.net/thread/3253343.aspx</link><pubDate>Tue, 23 Jun 2009 14:59:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3253343</guid><dc:creator>staplefordbill</dc:creator><author>staplefordbill</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3253343.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=3253343</wfw:commentRss><description>&lt;p&gt;Yes, that worked.&amp;nbsp; In the Install custom event, I check for a WebsiteInstalled flag.&amp;nbsp; If it&amp;#39;s set then I know a previous version of the app is installed and continue with the the upgrade logic.&amp;nbsp; If it&amp;#39;s not set then I set it and continue with the full installation logic.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks!&lt;/p&gt;</description></item><item><title>Re: Custom actions for a product upgrade</title><link>http://forums.asp.net/thread/3224641.aspx</link><pubDate>Thu, 11 Jun 2009 06:06:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3224641</guid><dc:creator>Nowall</dc:creator><author>Nowall</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3224641.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=3224641</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;When executing .exe, the custom action will be invoked. You can try to set a flag in target machine, and check this flag to determine whether to install database.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Custom actions for a product upgrade</title><link>http://forums.asp.net/thread/3214639.aspx</link><pubDate>Sat, 06 Jun 2009 08:04:29 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3214639</guid><dc:creator>staplefordbill</dc:creator><author>staplefordbill</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3214639.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=3214639</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve already raised this but in the wrong forum so I&amp;#39;ll try again:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m using a Deployment Project in Visual Studio 2008.&amp;nbsp; I have a
custom action&amp;nbsp;on the Install event to create a database and configure
mail settings when the web application is installed.&amp;nbsp; If however I
install a newer version of the application, the custom action for the
new version fires and I don&amp;#39;t want it to.&amp;nbsp; How can I stop this other
than running msiexec and passing in&amp;nbsp;a parameter such as &amp;quot;upgrade=true&amp;quot;
to the msi file?&lt;/p&gt;
&lt;p&gt;I set the condition &amp;quot;not Installed&amp;quot; on the Install action, but it makes no difference.&amp;nbsp; An old post explains why: &lt;/p&gt;
&lt;p&gt;&lt;em&gt;Understand that &amp;quot;Installed&amp;quot; means mainly &amp;quot;is my ProductCode &lt;br /&gt;guid already installed&amp;quot;, so if you change that guid (as you *must* for &lt;br /&gt;RemovePreviousVersions to work) &amp;quot;Not Installed&amp;quot; is a meaningless test.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;(&lt;a href="http://www.dotnetmonster.com/Uwe/Forum.aspx/vs-setup/1210/Not-Installed-launch-condition-backfired-with-Visual-Studio-Installer"&gt;http://www.dotnetmonster.com/Uwe/Forum.aspx/vs-setup/1210/Not-Installed-launch-condition-backfired-with-Visual-Studio-Installer&lt;/a&gt;)&lt;/p&gt;</description></item></channel></rss>