Posted 22 August 2008 - 09:24
I have a dialog in UI sequence with a checkbox in it. This checkbox is bound to a public property. On the dialog page the value of the property is set correctly i.e. "checked" = 1 "unchecked" = null. However when I try to use this property during execute sequence (Condition table - I try to force some features to be installed or not depending on the value of this property) the property does not a correct value. Instead it always have its initial value?!?
Thanks in advance.
Posted 22 August 2008 - 12:05
Posted 22 August 2008 - 12:36
Posted 22 August 2008 - 13:22
1. The problem is not in the property - property and its value are OK.
2. The problem seems due to that my dialog that sets the property appears after ConstFinalize when features states are already evaluated. Thus my property value has no effect.
3. My attempts to move the UI dialogs chain between ConstInitialize & ConstFinalize fails - some strings are not displayed and some "Next" buttons are grayed out.
Posted 22 August 2008 - 14:28
Posted 25 August 2008 - 15:25
Actually I've solved my problem using a CA. I've removed the correspondent entries in the Condition table. Instead I used MsiSetFeatureState in my CA. CA is added after ConstFinalize in InstallExecuteSequence.
Edited by pux, 25 August 2008 - 15:38.