The InstallExecuteSequence table contains the DeleteExistingProducts action declared in two different places

Following the advice from http://blogs.msdn.com/b/astebner/archive/2008/10/19/9006538.aspx , to keep the config files during WiX upgrade, I added the following line to InstallExecuteSequence:

<RemoveExistingProducts After="InstallFiles"></RemoveExistingProducts>

      

When compiling a WiX solution, the following message appears:

The InstallExecuteSequence table contains an action 'RemoveExistingProducts' that is declared in two different locations.  Please remove one of the actions or set the Overridable='yes' attribute on one of their elements.

      

Why is this happening? And how do you fix it?

+3


source to share


1 answer


You should try to remove this line:

<RemoveExistingProducts After="InstallFiles"></RemoveExistingProducts> 

      



and add Schedule = "afterInstallExecute" to the MajorUpgrade Element as follows:

<MajorUpgrade Schedule="afterInstallExecute" 
              DowngradeErrorMessage="Newer version installed. Exiting." />

      

+4


source







All Articles