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 9236263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:15:00+00:00 2026-06-18T07:15:00+00:00

I am using WiX 3.6 to create an msi that copies a few exe’s

  • 0

I am using WiX 3.6 to create an msi that copies a few exe’s and dll’s, installs a number of windows services and adds and deletes a few registry entries.

WiX is brilliant and using it’s built in features and custom actions in an associated .net managed dll I have been able to do everything I need to very easily.

One annoying problem has recently started happening though.

Installs proceed with no errors and do exactly what I expect, but when I uninstall, either from the Program Features control panel, or from a command line, the product entry remains in the Program Features list. All other files, services and folders are removed as expected, and the uninstall completes with no errors reported!

If I run the uninstall a second time, the Program Features entry is removed!

I have used verbose logging of the install and uninstall and viewed both through the Windows Installer Verbose Log Analyzer from the platform SDK, and it reports no errors.

I am puzzled!

I am sure it was uninstalling correctly before, but I cannot identify what I have done to make it start exhibiting this behaviour.

Any ideas would be appreciated.

PS I am running on Windows 7 64 bit machine, and generating a 32 bit installer.

PPS Log is too big to include here. Can anyone advise which entries I need to look at that controls the removal of the entry from the Program Features list?

Further clarification;

I had already checked the link from Christopher’s answer below, but the situation did not match mine.

After the first uninstall, the entry disappears from the Program Features list but reappears in the list if it is refreshed or exit the control panel and come back to it. The registry entry is still present (I have checked) and so this is why it still appears in the list.

The second uninstall removes the entry from the registry, and thus from the list too.

  • 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-06-18T07:15:01+00:00Added an answer on June 18, 2026 at 7:15 am

    I have retraced the changes I have made to the msi recently and have discovered the change I made that caused the uninstall to behave strangely.

    I created a feature that deletes a few old registry entries, and I only needed to do that during the initial install, so I put a condition on the feature as follows;

    <Feature Id="RegistryEntries" Level="0">
            <Condition Level="1">(NOT Installed)</Condition>
            <ComponentRef Id="RegKeysToDelete"/>
    </Feature>
    

    If I have no condition, the msi installs and uninstalls as expected.

    With the above condition, it installs correctly and deletes the registry keys, but the uninstall leaves the entry in Add Remove Programs and I need to uninstall again to remove it fully.

    If I use the following condition, the msi installs and uninstalls as expected;

    <Feature Id="RegistryEntries" Level="0">
            <Condition Level="1">(NOT Installed) OR REMOVE ~= "ALL"</Condition>
            <ComponentRef Id="RegKeysToDelete"/>
    </Feature>
    

    I didn’t cater for the uninstall initially because I don’t need to do anything on uninstall with these registry keys. Although this fixes the issue I had, I don’t understand why the first condition not evaluating to 1 causes the msi not to uninstall as expected, but I guess that is another question…

    See the MSDN topic Condition Table (Windows) (Remarks Section)

    Conditions should be carefully chosen so that a feature is not enabled
    on install and then disabled on uninstall. This will orphan the
    feature and the product will not be able to be uninstalled.

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

Sidebar

Related Questions

I'm using WiX 3.5 to create an installer that installs a Windows Service and
Using WiX (Windows Installer XML) I have created an MSI installer which installs Word
we are using wix project to create msi. We were trying to do major
I'm using WiX to create a windows installer. Unfortunately my installer overwrites a config
I am writing a installer using WiX that will create a website and virtual
I'm trying to create a setup project using WIX that will allow me to
I'm trying to create an MSI for my project using WIX. I've got HEAT
I'm using VS2010 and WiX 3.6 to create MSI packages and bundle them into
I want to create a windows service using WIX and set some parameters (not
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.