What is the syntactic sugar? I thought I was following

http://www.tramontana.co.hu/wix/lesson4.php#4.2


So the question is why doesn't this work (what am I missing)? And, is there a 
better way?

For reference here is the WiX code that I am using:

    <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
    <Upgrade Id='529189FE-FD0E-44ff-8DA6-B4FB5CC7A78B'>
        <UpgradeVersion Minimum="1.0.0.0" Maximum="3.0.0.0" OnlyDetect='no' 
Property="PREVIOUSVERSIONSINSTALLED" IncludeMinimum="yes" IncludeMaximum="no" />
  </Upgrade>
. . . . .
    <InstallExecuteSequence>
      <RemoveExistingProducts After="InstallFinalize"></RemoveExistingProducts>
    </InstallExecuteSequence>

Kevin Burton
Senior Software Engineer
BUYSEASONS
262-901-2000 Office
262-901-2312 Fax
kev...@buyseasons.com 

-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: Thursday, February 24, 2011 10:34 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Uninstall an installed product.

In WiX v3.5, MajorUpgrade element provides nice "syntactic sugar".
Otherwise, you want to look at the Upgrade element.

On Thu, Feb 24, 2011 at 10:22 AM, Kevin Burton <kev...@buyseasons.com>wrote:

> I know this is an old question but I don't know the WiX syntax  for 
> automatically uninstalling an installed product. I looked at the 
> documentation and I got confused with Major/Minor updates/upgrades. In 
> my case if the product is install I *always* want to uninstall it 
> before proceeding with the installation. Any hints?
>
> Kevin Burton
> Senior Software Engineer
> BUYSEASONS
> 262-901-2000 Office
> 262-901-2312 Fax
> kev...@buyseasons.com
>


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to