Kevin,

Lesson 4 is/was based on Wix V3.  Rob's reply refers to an addition to 
Wix3.5  though I would expect lesson 4 code probably still applies in 
V3.5.  Depending on which version of WiX you use will determine what 
options you have for writing upgrades.

Now, the key is where you place the RemoveExistingProducts function as 
this directly affects exactly what happens.  If you schedule it early in 
the sequence then any existing product is uninstalled in its entirety 
before your new version is installed.

If, as you have, schedule it late in the sequence then basically what 
will happen is that the initial install will remain with only files that 
have changed being affected/changed/removed.

A quick search for RemoveExistingProducts should you the location to 
schedule it early or late (I don't remember the location off the top of 
my head).  Note, there are advantages and disadvantages of using it 
either way so you may also want to look into that and decide which suits 
you best.

If you are having specific issues with upgrading, can you be more 
specific about what is, or isn't working?  Creating a verbose log when 
you run the installer may also help you diagnose what's happening.

Chris




On 02/25/2011 11:05 AM, Kevin Burton wrote:
> 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

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