MessageBoxes using DTF

后端 未结 1 1426
遇见更好的自我
遇见更好的自我 2021-01-06 21:50

The MsiProcessMessage function doco on MSDN shows this example:

PMSIHANDLE hInstall;
PMSIHANDLE hRec;
MsiProcessMessage(hInstall, 
                  INSTALLM         


        
1条回答
  •  迷失自我
    2021-01-06 22:14

    I've not done much with DTF but my understanding is that you'd want something like:

    Session.Message(InstallMessage.Error | 
                    (InstallMessage)((int)MessageButtons.AbortRetryIgnore |
                                     (int)MessageIcon.Warning), 
                    record);
    

    Not very pretty. I've formatted the messageType agument to fit better in the text box here. Format in your code as per your coding guidelines. :)

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