I think you may have sequenced RemoveExistingProducts in the wrong place in 
V2.0.0.0.
It either needs to be

<InstallExecuteSequence>
<RemoveExistingProducts After="InstallValidate" />
</InstallExecuteSequence>

or

<InstallExecuteSequence>
<RemoveExistingProducts After="InstallFinalize" />
</InstallExecuteSequence>

The first option removes all the files regardless then installs the newer 
versions.
The second only removes those files that have changed between the two.  I 
believe
there are pros and cons to using one method over the other but I am not the 
person
to tell you what they are (I use the first option in my installs).

Chris

On 10/01/2010 10:13 AM, Simon Chromow wrote:
> Hello,
>
>
>
> I have a problem with running an upgrade to newer version with Wix.
>
> When i'm doing an upgrade from version 1.0.0 to version 2.0.0, at first
> all files are updated.
>
> But then after InstallFinalize all files except the files added during
> the upgrade are removed.
>
> Which means also the updated (overwritten) files are deleted.
>
> Is it possible to dissable this remove?
>
> I already tried to supress the RemoveExistingProducts action by
> different ways.
>
> I'm using Wix 3.0
>
>
>
> Version 1.0.0
>
>
>
> <?define ProductVersion="1.0.0"?>
>
>    <?define RTMProductVersion="1.0.0"?>
>
>    <?define UpgradeCode="{C3F295CE-A8E2-48D4-88B8-0DD06EA8D674}"?>
>
>
>
>
>
> <Upgrade Id="$(var.UpgradeCode)">
>
>        <UpgradeVersion Minimum="$(var.RTMProductVersion)"
>
>                        IncludeMinimum="yes"
>
>                        Maximum="$(var.ProductVersion)"
>
>                        IncludeMaximum="no"
>
>                        Language="1031"
>
>                        Property="UPGRADEFOUND"/>
>
>      </Upgrade>
>
>
>
>      <InstallUISequence>
>
>        <Custom Action="PreventDowngrading"
> After="FindRelatedProducts">NEWPRODUCTFOUND</Custom>
>
>      </InstallUISequence>
>
>      <InstallExecuteSequence>
>
>                <Custom Action="PreventDowngrading"
> After="FindRelatedProducts">NEWPRODUCTFOUND</Custom>
>
>        <RemoveExistingProducts After="InstallFinalize"/>
>
>      </InstallExecuteSequence>
>
>
>
> Version 2.0.0 //upgrade
>
>    <?define ProductVersion="2.0.0"?>
>
>    <?define RTMProductVersion="1.0.0"?>
>
>    <?define UpgradeCode="{C3F295CE-A8E2-48D4-88B8-0DD06EA8D674}"?>
>
>
>
> <Upgrade Id="$(var.UpgradeCode)">
>
>        <UpgradeVersion Minimum="$(var.RTMProductVersion)"
>
>                        IncludeMinimum="yes"
>
>                        Maximum="$(var.ProductVersion)"
>
>                        IncludeMaximum="no"
>
>                        Language="1031"
>
>                        Property="UPGRADEFOUND"
>
>                        OnlyDetect="yes"/>
>
>      </Upgrade>
>
>
>
>      <InstallUISequence>
>
>        <Custom Action="ShowMsiLog" After="WarningDbSchema">NOT
> Installed</Custom>
>
>        </InstallUISequence>
>
>
>
>      <InstallExecuteSequence>
>
> <RemoveExistingProducts Before="InstallInitialize" Suppress="yes"/>
>
>       </InstallExecuteSequence>
>
>
>
>
>
> Thank you
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>    

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to