[wix-users] feature condition and uninstall
Hanebach, Jack (US - Mechanicsburg Delivery)
jhanebach at deloitte.com
Fri Mar 2 06:25:11 PST 2018
Thanks for your answer.
Well, the condition is there for the user to select which features to install. Is the a way to tweak the condition so it will also work for uninstalling? I have already tried to skip the “Installed” part and it did not change the behavior… ☹
jhanebach at deloitte.com | www.deloitte.com
From: Nir Bar [mailto:nir.bar at panel-sw.com]
Sent: Friday, March 2, 2018 3:29 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Hanebach, Jack (US - Mechanicsburg Delivery) <jhanebach at deloitte.com>
Subject: Re: [wix-users] feature condition and uninstall
Unlike LaunchConditions that fail the installation if false, feature conditions set the level of the feature if true.
That means that you're setting the feature level to 0 during uninstall/repair/modify.
That in turn, causes the feature to be ignored during the operation which is why it isn't removed.
Feature levels are intended for default selection of features to install.
To get the feature to uninstall, remove the Condition element altogether.
Nir Bar, Independent WiX Expert. Creator of-
JetBA: WiX WPF Bootstrapper User Interface Framework
JetBA++: WiX Native Bootstrapper User Interface Framework
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited.
More information about the wix-users