Inserting Custom Action between Dialogs (InstallUISequence) in WiX

前端 未结 1 498
独厮守ぢ
独厮守ぢ 2020-12-31 17:04

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

相关标签:
1条回答
  • 2020-12-31 17:42

    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.

    0 讨论(0)
提交回复
热议问题