AllanW
Posts: 20
Joined: Thu Feb 18, 2010 11:42 pm

Problem with "Message Box" Custom Action

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.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Problem with "Message Box" Custom Action

Hi Allan,

Thank you for bringing this to our attention. This is indeed a bug. A fix has already been made and will be available in the upcoming version of Advanced Installer which is due for release anytime now.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
AllanW
Posts: 20
Joined: Thu Feb 18, 2010 11:42 pm

Re: Problem with "Message Box" Custom Action

Thanks for that. I'll look forward to the update and meanwhile, I'll figure out a workaround for the problem.
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: Problem with "Message Box" Custom Action

This bug is blocking me as well.

For reference,
* Nov 2009 - old forum post which recommends using an ampersand instead of a comma to separate the msgbox flags
* Sep 2010 - newer forum post which describes the same problem with the msgbox icon

Any sense of when the fix will be available?

Thanks much,
-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Problem with "Message Box" Custom Action

Hi Todd,

The fix has been ready for some time now, and will be available with the upcoming release. If you need the fix sooner than that, email support at advancedinstaller dot com for a release candidate for this custom action. Please refer to this thread in your email.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”