Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 866785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:52:00+00:00 2026-05-15T09:52:00+00:00

I have a main product which is installed using Wix and has its own

  • 0

I have a main product which is installed using Wix and has its own UpgradeCode

In between releases of the main product we sometimes release plug-ins which add or patch some functionality. The plug-ins are packaged in their own Wix generated .msi files with their own UpgradeCodes and generally install addition files is a separate folder from the main product.

I want to create a new version of the main product which includes the functionality which was previously available in a plug-in. A user upgrading to the new version will no longer need the plug-in so it would be nice to uninstall it as part of the upgrade.

Is there a way of making Wix uninstall a product with UpgradeCode2 when it is upgrading product with UpgradeCode1?

===Update after Bob’s answer===

I tried multiple Upgrade elements and the Wix code compiles ok but the installer does not work

When I double click the .msi I immediately get an error dialog saying “Unexpected error … The error code is 2711”

According to Microsoft’s Windows Installer Error Messages page, error 2711 means “The specified Feature name (‘[2]’) not found in Feature table.”

The event viewer lists an error for MsiInstaller:
“The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2711. The arguments are: {6BEC2276-3211-4E5F-9EF0-2E64B92DE3F4}, , “

The guid is the correct ProductCode for the product I want to uninstall.
msiexec /uninstall {6BEC2276-3211-4E5F-9EF0-2E64B92DE3F4} successfully does the uninstall.

I am guessing that the space between the 2 commas after the guid is the “Feature name (‘[2]’)” that could not be found. I have tried putting this in manually by adding attribute RemoveFeatures=”PlugInFeatureId” to the element but still get the same result.

I am missing something to make the installer build the list of features it should remove?

...

<!--Upgrade the main application-->
<Upgrade Id='$(var.UpgradeCode)'>
  <UpgradeVersion OnlyDetect='no' Property='PATCHFOUND'
    IncludeMinimum='yes' Minimum='1.0.1' Maximum='$(var.BuildVersion)' IncludeMaximum='no'/>
</Upgrade>

<!--Remove the old plugin-->
<Upgrade Id='$(var.PluginUpgradeCode)'>
    <UpgradeVersion OnlyDetect='no' Property='REMOVE' IncludeMinimum='yes' Minimum='1.0.0' Maximum='15.0.0' IncludeMaximum='yes'/>
</Upgrade>

<UIRef Id="WixUI_ErrorProgressText" />

<InstallExecuteSequence>
  <FindRelatedProducts  Before="LaunchConditions" />
  <RemoveExistingProducts After="InstallInitialize" />
</InstallExecuteSequence>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:52:01+00:00Added an answer on May 15, 2026 at 9:52 am

    Yes, just add it as a second Upgrade element with the right UpgradeVersion children.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WIX Installer project, which installs my product. The code was not
Let's say there's an application which should create its own tables in main database
I have an RCP product which doesn't run. Then I installed Eclipse freshly, and
We have to create a special interim alpha release for our product which should
I have a website which is up and running on drupal. Its product based
I have main table called 'Employee' and another slave table called 'EmployeeTypes' that has
i have a table called category in which i have main category ids and
I have a main asp.net app, which is written in asp.net 1.1. Runnning underneath
I have a main window (#1) on my webpage from which I open a
I have a main canvas 'blackboard' in a panel, this canvas has itself several

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.