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

Reply via email to