In my installer, I am displaying dialog based on the features selected in "ConfigureDlg".
I have 3 features and 2 dialogs. The flow is like below:
Feature1 -> Dialog1 [Works OK]
Feature2 or Feature3 -> Dialog2 [Issue]
Now, if I select Feature2 or Feature3 and do not select Feature1, and when I click next it shows the Dialog2 whick is okay but if I click Back from "VerifyReadyDlg", it shows Dialog2 and again on clicking Back it shows Dialog1 (which should not be showed) and on again clicking Back, it shows the ConfigureDlg with all the features selected.
Because of this, my custom actions that are dependent on Feature1 also gets executed even if I don't select it.
For single feature -> single dialog, everything works fine, but for multiple features -> single dialog it shows this weird behaviour.
Update:
Upon narrowing down the issue, I found that everything works fine if I am navigating back and forth among the "ConfigDlg" and various features dialog. But once I come on "VerifyReadyDlg", the issue comes up. Also in the logs I see the below output once I come on "VerifyReadyDlg"
Here, "INSTALL_FEATURE2" should be 1 only if I selected the feature from "CustomizeDlg", but even if I don't select it, the above line shows up. There is no custom action who modified this propertyMSI (c) (E4:18) [14:07:21:980]: Doing action: DatabaseConfig
Action 14:07:21: DatabaseConfig.
Action start 14:07:21: DatabaseConfig.
MSI (c) (E4:B4) [14:07:21:980]: PROPERTY CHANGE: Adding INSTALL_FEATURE2 property. Its value is '1'.
Any ideas how can I tackle it?
Thanks.
Prerak
FOLLOW US
Get the latest news in Application Packaging