Dialog based on multiple features - Advanced Installer Community
prerak6962
Posts: 112
Joined: Mon Dec 08, 2014 5:26 pm

Dialog based on multiple features

Hello,

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"
MSI (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'.
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 property

Any ideas how can I tackle it?

Thanks.
Prerak
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Dialog based on multiple features

Hi Prerak,

In order to display some dialogs based on the selected features you can follow the "How to display some dialogs depending on the selected features" tutorial.

I'm not sure why the "INSTALL_FEATURE2" property is modified on the "VerifyReadyDlg" dialog. Can you please send me the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so I can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”