In my custom actions I need to know if a feature was hidden, in order to skip the uninstall/remove actions. Is this possible?
Know if a feature was hidden
Posted 28 June 2016 - 22:52
I'm not sure about being visible or not but if your goal was to know if the install state of a feature changed, you can use conditions on your Custom Actions to run or prevent them from running.
Posted 29 June 2016 - 03:12
My problem is that the Custom Action is always executing even when the condition is not true. Just confirming, I tested with this conditions:
INSTALLLEVEL = 0
INSTALLLEVEL = 30578
INSTALLLEVEL = 30579
INSTALLLEVEL = 30580
Tried running the installer with that different values and it looks like the InstallShield is ignoring the condition and doing whatever he wants.
Posted 11 July 2016 - 15:45
The INSTALLLEVEL property is not what you want. Use this:
&NameOfYourFeature = 2
This is true if the feature is being uninstalled.
InstallSite.org twitter facebook
HOWTO: Logging an MSI installation