Richard

Here's some help on doing upgrades

http://blogs.technet.com/b/alexshev/archive/2008/02/15/from-msi-to-wix-part-8-major-upgrade.aspx

Looking at your code, I think you may have sequenced 
RemoveExistingProducts in the wrong place.
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).

You also need to make sure your product code changes from version to 
version but the upgrade code must remain constant through all versions.

You can also use the verbose log during an install to see what's going 
on.  The output can seem a bit cryptic initially but it can help debug 
the problems.

Finally, you might want to consider adding a check to prevent people 
downgrading.  The link I sent has information on how to do that.

Hope that helps

Chris

On 09/30/2010 03:44 PM, marric01 wrote:
> 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
>    

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