In another area of your code look for the <Product/> element and make
sure you change the Id="" guid there as one necessary step. But, leave
the UpgradeCode unchanged in that same element. Also make sure you
increment your version number to something higher than that one you have
already installed.

Then in your UpgradeVersion element that you show below don't forget to
add

OnlyDetect="no"

This is what causes it to not just check for your other version, but
also remove it.

Hope that helps
Chad


-----Original Message-----
From: Kevin Burton [mailto:kev...@buyseasons.com] 
Sent: Thursday, February 24, 2011 3:21 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Command line installation?

I have WiX code like:

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

I am trying to automatically uninstall any previous versions of the
package before this installation proceeds. But even with this code when
I run the .msi I get a prompt indicating that I must go to the Control
Panel and uninstall a previous version. What am I doing wrong?

Kevin

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