DPulaski
06-04-2007, 02:41 PM
Background:
I have an installer (using Installshield 11.5 for Windows; Basic MSI project) that uses a custom UI dialog to enable the installation of optional features (there are 3), using simple checkbox controls. These checkboxes toggle the value of properties that correspond to each of the three features, and these properties are then used in a Condition statement in the Feature definitions.
Simple enough, and it works fine on the initial first-time install.
Question:
My problem is, I now need to get this same checkbox dialog to work in a Modify mode when the installer is run again, so the user can install or uninstall any of these 3 optional features after the initial install.
I've replaced the standard CustomSetup dialog with my new checkbox dialog in the UI sequence after MaintenanceType, but now I can't figure what to do underneath it all to make it actually work.
Question #1: how can I detect the existing install state of each of the three features so I can set the checked/unchecked state of each features' checkboxes on the dialog?
Questoin #2: how do I translate the checked/unchecked state of the feature checkboxes into the appropriate install/uninstall operations after ReadyToInstall?
Basically, I am trying to mimic the functionality of the canned CustomSetup dialog using my own dialog with checkbox controls for the features. Any suggestions would be appreciated, as I am having a terrible time trying to reverse-engineer the CustomSetup functionality.
I have an installer (using Installshield 11.5 for Windows; Basic MSI project) that uses a custom UI dialog to enable the installation of optional features (there are 3), using simple checkbox controls. These checkboxes toggle the value of properties that correspond to each of the three features, and these properties are then used in a Condition statement in the Feature definitions.
Simple enough, and it works fine on the initial first-time install.
Question:
My problem is, I now need to get this same checkbox dialog to work in a Modify mode when the installer is run again, so the user can install or uninstall any of these 3 optional features after the initial install.
I've replaced the standard CustomSetup dialog with my new checkbox dialog in the UI sequence after MaintenanceType, but now I can't figure what to do underneath it all to make it actually work.
Question #1: how can I detect the existing install state of each of the three features so I can set the checked/unchecked state of each features' checkboxes on the dialog?
Questoin #2: how do I translate the checked/unchecked state of the feature checkboxes into the appropriate install/uninstall operations after ReadyToInstall?
Basically, I am trying to mimic the functionality of the canned CustomSetup dialog using my own dialog with checkbox controls for the features. Any suggestions would be appreciated, as I am having a terrible time trying to reverse-engineer the CustomSetup functionality.