I've run into what might be a problem with the Message Box (MsgBox) predefined Custom Action in AI 7.7. It seems like only the first item in the Type parameter is used by the function. For instance, if I set CustomActionData to:
Code: Select all
My message | My Caption | MB_ICONEXCLAMATION,MB_OKCANCEL,MB_SETFOREGROUND | | [CLIENTPROCESS]
I get a message box with an exclamation mark icon but only an OK button, but if I set CustomActionData to:
Code: Select all
My message | My Caption | MB_OKCANCEL,MB_ICONEXCLAMATION,MB_SETFOREGROUND | | [CLIENTPROCESS]
I get a message box with OK and Cancel buttons but no icon. This investigation actually started when I noticed that the MB_SETFOREGROUND param didn't seem to be working (the message box displayed below the current installer dialog). I found an old message here where you suggested using '&' instead of ',' to separate the params and I've tried adding spaces between the separators and the params but none of that had any effect on the problem.
Is there something wrong with the MsgBox function or have I simply managed to mess up my syntax somehow?
Thanks for the help.
FOLLOW US
Get the latest news in Application Packaging