Hi
I am stuck again, trying to customise the flow of dialogs based on the selected features. I have checked the posts on conditionally displaying a dialog using the "Show only if" menu selection, but this only works if there is only one dialog in the stream that needs to be conditionally displayed. This is probably best described by example: I have 4 features, which we will name F1, F2, F3 and F4. In my installation, each feature is a module, which has its own settings page in the installer.
In my test project, I set up the features, and created 4 new dialogs (F1Dlg, F2Dlg, etc) between the Customize page (which I pulled out of the Setup Type dialog) and the VerifyReadyDlg dialog. Run the test, all looking fine. Then I added a "Show only if" condition on F1Dlg, to show only if &F1=3. Without feature F1 selected, it jumps straight to F2Dlg, and with F1 selected, it shows F1 and then F2. No problem there. However, if I repeat that process for F2, F3 and F4, and then select all features for installation, it shows F1Dlg and then jumps straight to VerifyReadyDlg.
Is it possible to show a dialog by name, so that I can use a custom action to determine the next dialog in the sequence (e.g. Set property Value LM_NEXT_DIALOG="F2Dlg"; ShowDialog [LM_NEXT_DIALOG])? Failing that, is it possible to show a dialog via a call to MsiDoAction from within the custom actions DLL? Is it possible to simply tie a dialog to a feature, without having to manually code the flow individually into every single next/back button?
I have attached a scratchpad project that illustrates what I am trying to accomplish.
Thanks,
Peter