
Portal User asked a question.
Feature and custom action
I'm trying to install my toolbox controls and related help content to Visual Studio using InstallShield feature and custom action. If controls and/or help feature is selected during the first install, it will trigger a custom action that does the necessary work to install the features. The first install goes like it should: controls and/or help is installed if they are selected. But when I do a maintenance install (i.e. "Modify" or "Change") and uninstall one or both, the related custom action is not triggered. The check boxes are unchecked the next time I run the maintenance install so they are updated but toolbox controls / help are still on the target machine.
The next time when I check the boxes again the feature custom action won't trigger either. Check boxes are update correctly though but they are not naturally "bound together" with my custom actions.
I have added REMOVE="ALL" to make sure that everything is uninstalled on uninstall but for some reason my custom action won't get triggered during maintenance install even though I have typed a correct condition for removing a feature (I think).
I've battled with this for a couple of days and googled hours for more information but nothing seems to work (i.e. tried different custom action conditions and places in the sequence). What am I doing wrong? Do I need to handle maintenance mode separately in the custom action condition?
Here's a screen capture from the custom actions and sequences page:
Don't know if this is a bug or conditions are not fully supported in installscript project or I just don't know how to use them. At least, it works this way.