That's called a major upgrade. You need to change the product id for your newer 
installer as well as the version.

You also have to say that you want previous version uninstalled. You have 2 
options:

1. Use an Upgrade element like explained here. Remember to schedule 
RemoveExistingProducts action.
http://www.tramontana.co.hu/wix/lesson4.php#4.1

or

2. As you use WiX3, you can use instead of Upgrade the MajorUpgrade element; in 
this case you don't have to specify RemoveExistingProducts, the "MajorUpgrade" 
element available in WiX will do it for you.

I hope it works.


--- On Thu, 9/30/10, marric01 <richard.mar...@ssss.gouv.qc.ca> wrote:

From: marric01 <richard.mar...@ssss.gouv.qc.ca>
Subject: [WiX-users] Automatic remove of older version
To: wix-users@lists.sourceforge.net
Date: Thursday, September 30, 2010, 10:44 PM


Hi, 

I made an installer with WIX 3.5 that deploy things for a BI Solution.

When I have a new version of my WIX Installer, and the client run the
installer (MSI), can it automatically uninstall any older version installed
on the PC and start the installation of the new version ? It is something
possible ? Any suggestion on how to do this (or some link on web) ? 

I don't want the message saying that theres is another older version on the
PC and it got to be uninstall before installing the new one. I never need to
Update things ... I always have to remove everything and install it back
with new components. 

I tried this (see code bellow) but it keep saying that another version is
installed and that I have to remove it from Add/Remove Program

<Product Id="725fca14-3120-4e13-a782-90dec57b59b3" Name="AQ_SPU_CUBE"
Language="1036" Version="2.0.0" Manufacturer="AQ_SPU_CUBE"
UpgradeCode="002d3b98-f6be-4e8e-b6ae-4848ff009b46" Codepage="1252">
    <Package InstallerVersion="200" Compressed="yes"  />

    <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />


    <Upgrade Id="002d3b98-f6be-4e8e-b6ae-4848ff009b46">
      <UpgradeVersion OnlyDetect="no" Property="PREVIOUSFOUND"
        Minimum="1.0.0" IncludeMinimum="yes"
        Maximum="3.0.0" IncludeMaximum="no" />
    </Upgrade>

    <InstallExecuteSequence>
      <RemoveExistingProducts Before="InstallInitialize" />
....
</InstallExecuteSequence>



Thanks Richard 
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Automatic-remove-of-older-version-tp5589138p5589138.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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