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

  • SEARCH
  • Home
  • 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 6759109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:53:35+00:00 2026-05-26T13:53:35+00:00

We are using WiX to create two packages for our product. Package A includes

  • 0

We are using WiX to create two packages for our product. Package A includes modules and other components that are prerequisites for Package B. I would like to prevent Package A from uninstalling when Package B is installed.

Can you recommend some techniques?

(I tried setting a property with UpgradeVersion/OnlyDetect along with a launch Condition, but discovered FindRelatedProducts is skipped during uninstall.)


@Cosmin has a good approach. What I’ve done is add a registry value to Package B containing Package A’s UpgradeCode (thinking this will allow the dependency to be broken in the future should the need arise.)

  <Component Id="RegistryInfo" Guid="*" Win64="$(var.Win64YesNo)">
    <RegistryKey Id="CurrentVersion" Root="HKLM" Key="SOFTWARE\MYCO\PACKAGE_B\CurrentVersion" Action="create">
      <RegistryValue Name="ProductVersion" Value="[ProductVersion]" Type="string" />
      <RegistryValue Name="PackageAUpgradeCode" Value="$(var.PackageAUpgradeCode)" Type="string" />
    </RegistryKey>
  </Component>


Then Package A checks for the “dependency” during an uninstall.

<Property Id="PACKAGE_B_DEPENDS_ON">
  <RegistrySearch Id="PackageAUpgradeCode" Root="HKLM" Key="SOFTWARE\MYCO\PACKAGE_B\CurrentVersion" Name="PackageAUpgradeCode" Type="raw" />
</Property>

<Condition Message='Package A is installed and requires this package.'>
  not REMOVE = "ALL" or not PACKAGE_B_DEPENDS_ON = "$(var.PackageAUpgradeCode)"
</Condition>

  • 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-26T13:53:36+00:00Added an answer on May 26, 2026 at 1:53 pm

    A solution would be to use registry entries and searches:

    • each package writes some information in registry, for example install path and product version
    • each package uses a registry search which detects the other installer
    • you use the search property to condition an error custom action

    If you don’t like using the registry, you can also use file searches for installed files.

    Please note that FindRelatedProducts detects older or newer versions of the same product. Windows Installer doesn’t offer support for linking two packages.

    Also, launch conditions are usually skipped during install. This is why an error custom action is a good approach.

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

Sidebar

Related Questions

I am writing a installer using WiX that will create a website and virtual
When I create a Windows Installer package (say using WiX) and I install the
I'm trying to create a setup project using WIX that will allow me to
I'm using WiX to create an installer for a windows service. It's desirable that
I have to create an installation package using Wix. If an admin user is
I am using WiX 3.6 to create my application setup. I have bundled two
we're using Wix to create our installers. We're using the UI where one can
I am using WiX to create an installer, and wish to share a folder
I'm using WiX to create a windows installer. Unfortunately my installer overwrites a config
I'm using Wix to create an installer for a Silverlight application. When I install

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.