Hi all,

 

Has anyone run into the issue where website is being removed after a
major upgrade on Windows Server 2003 (IIS 6)?  This does not happen on
server 2008 (IIS 7).  My original install creates a database and
website.  Now, I'm trying to perform upgrades in IIS 6, after the
upgrade the website is blown away. 

 

To resolve it, I have to change UpgradeVersion to not remove previous
product.  Doing this allows the upgrade to work properly fine, but
leaves the older version in add/remove programs.  I would prefer to
replace the older version if possible.  I'm using wix version
3.0.5217.0.  I have tried using the SkipIISCA custom action, but no
luck. 

 

Thanks in advance for any ideas or solutions!

 

Here's some sample code from the wix file:

 

    <Upgrade Id="$(var.UpgradeCode)">

      <UpgradeVersion Minimum="$(var.ProductVersion)"
IncludeMinimum="yes" Maximum="$(var.ProductVersion)"
IncludeMaximum="yes" Language="1033" Property="SELFFOUND"
OnlyDetect="yes" />

      <UpgradeVersion Minimum="$(var.RTMProductVersion)"
IncludeMinimum="yes" Maximum="$(var.ProductVersion)" IncludeMaximum="no"
Language="1033" Property="PREVIOUSFOUND" />

    </Upgrade>

 

    <InstallExecuteSequence>

                  <!-- <Custom Action="SkipIISCA"
After="CostFinalize"><![CDATA[&WebsiteFeature <> 3 AND Not
Installed]]></Custom> -->

                  <!-- <Custom Action="SkipIISCA"
After="CostFinalize">1</Custom> -->

      <Custom Action="VerifyPreviousVersion"
After="FindRelatedProducts">NOT PREVIOUSFOUND</Custom>

      <Custom Action="PreventDowngrading"
After="FindRelatedProducts">SELFFOUND</Custom>

    </InstallExecuteSequence>

 

      <Component Id="NewWebsiteConfigASP" Guid="{MYGUID}">

        <iis:WebSite Id="IISWebsite" Description="[WEBSITEDESCRIPTION]"
Directory="TARGETDIR" AutoStart="yes" ConfigureIfExists="yes"
StartOnInstall="yes">

          <iis:WebAddress Id="IISWebAddress" Port="[WEBSITEPORT]"
IP="[WEBSITEIP]" Header="[WEBSITEHOSTHEADER]" />

          <iis:WebDirProperties Id="IISWebDirProperties" Execute="yes"
Read="yes"
DefaultDocuments="default.aspx,index.aspx,index.htm,index.html,default.h
tm,default.html" />

          <iis:WebDir Id="IISAppDataWebDir" Path="App_Data">

            <iis:WebDirProperties Id="IISAppDataWebDirProperties"
Write="yes" Read="yes"
DefaultDocuments="default.aspx,index.aspx,index.htm,index.html,default.h
tm,default.html" />

          </iis:WebDir>

          <iis:WebApplication Id="WebApplication"
Name="[WEBAPPLICATIONNAME]" WebAppPool="WebAppPool">

          </iis:WebApplication>

        </iis:WebSite>

        <iis:WebAppPool Id="WebAppPool" Name="[WEBAPPLICATIONPOOLNAME]"
Identity="networkService" />

        <Condition>TARGETMODE = "NewWebsite" AND SCRIPTLANGUAGE =
"ASP"</Condition>

      </Component>

      <Component Id="ExistingWebsiteConfigASP" Guid="{MYGUID}">

        <iis:WebSite Id="IISWebsiteExisting"
Description="[WEBSITEDESCRIPTION]" ConfigureIfExists="no"
Directory="TARGETDIR">

          <iis:WebAddress Id="IISWebAddressExisting"
Port="[WEBSITEPORT]" IP="[WEBSITEIP]" Header="[WEBSITEHOSTHEADER]" />

          <iis:WebVirtualDir Id="WebVirtualDirectory"
Alias="[VIRTUALDIRECTORYNAME]" Directory="TARGETDIR">

            <iis:WebDirProperties
Id="IISWebVirtualDirPropertiesExisting" Execute="yes" Read="yes"
DefaultDocuments="default.aspx,index.aspx,index.htm,index.html,default.h
tm,default.html" />

            <iis:WebApplication Id="WebApplicationExisting"
Name="[WEBAPPLICATIONNAME]" WebAppPool="WebAppPoolExisting">

            </iis:WebApplication>

          </iis:WebVirtualDir>

        </iis:WebSite>

        <iis:WebAppPool Id="WebAppPoolExisting"
Name="[WEBAPPLICATIONPOOLNAME]" Identity="networkService" />

        <Condition>TARGETMODE = "ExistingWebsite" AND SCRIPTLANGUAGE =
"ASP"</Condition>

      </Component>

 

 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to