Hi Ben,
This is not actually a bug, but rather the way Windows Installer works.
As it is mentioned in the Windows Installer documentation, the
SelectionPathOn Control Event is never published during maintenance.
However, the
SelectionPath Control Event, to which the "Location" text control (not the "LocationLabel" control) subscribes, is also published during maintenance.
What is even more intriguing is that both controls (as well as the "Browse" button) have a Control Condition that hides them in maintenance mode (when
Installed evaluates to True). That is, the 2 Static Text controls and the "Browse" button should all be hidden in maintenance mode, but it seems that the "Location" control is actually visible (because it subscribes to the
SelectionPath event).
To conclude, it seems that if both a Subscribed Event and a Control Condition alter the same attribute of a given control, the Subscribed Event will have precedence over the Control Condition, in that it will override the control's attribute value set by the Control Condition. I have not found this documented in the SDK, but from my testing this seems to be the case.
Regards,
Ionut
FOLLOW US
Get the latest news in Application Packaging