I have two custom dialog boxes (plus the required ones ExitDlg
, FatalErrorDlg
, etc.), the first one sets a property using an Edit control and the s
Rather than scheduling the custom action in the InstallUISequence
you can publish it on the button click:
<Dialog Id="DialogA" ...>
<Control Id="ControlEdit" Type="Edit" Property="MY_PROPERTY" .../>
<Control Id="ControlNext" Type="PushButton" ...>
<Publish Event="DoAction" Value="MyCustomAction">1</Publish>
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
</Dialog>
EDIT: The Publish
element's condition needs to explicitly evaluate to true to run, so add "1"
as the text of the Publish
elements.