InstallShield 11 Custom Action only for selected components
Posted on 2009-04-20
I have an InstallShield MSI installation with a custom action which runs a VBScript file to determine if a database already exists and deletes it if it does. I am extending the installation to allow just the UI to be installed and now can select whether to install the Application (UI) and/or the Database component. So within 'Setup Types' I have the common type with two selectable Features - 'Application' and 'Database'
If the user decides to only install the UI I want to prevent the custom action from being run as in this case I want to connect to an existing database and do not want to delete it. I can't seem to find a way in which a custom action can be set to only run if a specific Feature is installed.