Did you schedule RemoveExistingProducts and include an Upgrade table?

Ex:
    <!-- This custom action prevents users from installing if a newer
version of this product is already -->
    <!-- installed on the system. This is a part of Windows Installer
major upgrade functionality.       -->
    <CustomAction Id="CA_BlockOlderVersionInstall"
Error="!(loc.LaunchCondition_LaterVersion)" />

...

    <InstallExecuteSequence>
      <FindRelatedProducts Before="AppSearch"/>
      <Custom Action="CA_BlockOlderVersionInstall"
After="FindRelatedProducts">
        <![CDATA[NEWERVERSION_INSTALLED]]>
      </Custom>     
      <RemoveExistingProducts After="InstallInitialize" />
...

and

    <!-- This information enables Windows Installer major upgrade
functionality so users can seamlessly  -->
    <!-- install a new version of the product and have the old version
automatically uninstall behind    -->
    <!-- the scenes. See the following topic in the MSDN Library for
additional information:             -->
    <!--
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/set
up/major_upgrades.asp   -->
    <Upgrade Id="$(var.UpgradeCode)">
      <UpgradeVersion Minimum="$(var.ProductVersion)"
IncludeMinimum="no" OnlyDetect="yes" Property="NEWERVERSION_INSTALLED"
/>
      <UpgradeVersion Minimum="$(var.MinimumUpgradeVersion)"
IncludeMinimum="yes"
                      Maximum="$(var.ProductVersion)"
IncludeMaximum="no"
                      Property="OLDERVERSION_BEINGUPGRADED"
MigrateFeatures="yes" />
      <UpgradeVersion Property="ANYVERSION" IncludeMinimum="yes"
Minimum="0.0.0.0" Maximum="99.99.99.99" IncludeMaximum="yes"
OnlyDetect="yes" />

    </Upgrade>


Jacob

-----Original Message-----
From: Robert Lee [mailto:genrobert...@gmail.com] 
Sent: Wednesday, November 30, 2011 5:12 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Is major update supposed to duplicate the
add/removeprograms entry?

I would like to develop an installer so that it would NOT force the user
to
uninstall the application manually prior to installing new version. Just
running the new msi should update everything automatically.
As far as I understood the wix book, in order to achieve that, I should
set
product ID in the markup to "*", keep the upgrade code, and increase
version number. But when I run the new msi, a new entry is added to
add/remove programs. How to prevent that?
------------------------------------------------------------------------
------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to