I’m giving the Enhanced UI an honest try (reference:http://www.advancedinstaller.com/forums ... hp?t=34215). This is the first issue I’m running into:
I have the following features. Please take note of the “Installation Behavior” fields:
When clicking the “Next” button on the “WelcomeDlg”, I execute a custom action with the following code:
Code: Select all
CustomActions.m_Session["B_INSTALL_FEATURE"] = "-1";
//CostFinalize must be called to re-evaulate feature conditions.
CustomActions.m_Session.DoAction("CostFinalize");
You can see that “Disabled_Set_Property” is still visible, but it shouldn’t be. Now, it does seem to be disabled, since you cannot change the state:
But, it should be completely hidden. Notice that “Disabled” and “Disabled_Hardcoded_Property” are hidden.
So, my question is, why is “Disabled_Set_Property” not hidden, and what do I need to do to make it hidden? It’s worth noting that it is hidden if I don’t use the Enhanced UI (AI 13.4).
I’m guessing it has something to do with the sequencing of the actions. When I originally wrote this code, I found that I had to re-call CostFinalize after setting properties associated with feature conditions, as it seems to cause the installer to re-evaluate the feature conditions. I’m not sure if this was the proper way to do it, but it did work with the standard UI.
The fact that “Disabled_Hardcoded_Property” is hidden means moving the custom action (to set the property) to an earlier point (before the dialogs) would probably resolve the problem. However, this is not an option for me, as the property is set based on input from the user (product key).
Any ideas?
Thanks.
FOLLOW US
Get the latest news in Application Packaging