Messagebox message not working? - Advanced Installer Community
FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Messagebox message not working?

I've been using custom message box in my custom dialog for the past 2 years without issue to validate user input, and they seem to not be working anymore with AI 10.2, these have not been changed at all recently

I've just had reports that my messageboxes are now blank, is the runtime setting of the message box parameters no longer available?

In the Dialog Published Events for my "Next" Button, i have

----------
[CustomActionData]
That username does not exist, cannot be verified, or your logged on account does not have access to the domain specified. Please check your settings. | User Error | MB_OK , MB_SETFOREGROUND , MB_ICONWARNING | | [CLIENTPROCESSID]
-----------
Execute custom action
Arguement: MessageBox
Condition: AI_USER_EXISTS="No"

The message box appears, but without any text on it
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Messagebox message not working?

Hello,

I'm not sure why you encountered this behavior. I've tested your scenario but I can not reproduce it.

Can you please send us the .AIP(project file) of the installation to support at advancedinstaller dot com so we can investigate it?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Messagebox message not working?

Hello Fergus,

I've tested your scenario and I can reproduce the behavior. Indeed, this seems to be an Advanced Installer issue which appears when you try to configure the "Display message box" parameters by setting the CustomActionData property. A fix will be available in a future version of Advanced Installer, thank you for bringing this to our attention. Until then, as a workaround you can use installer properties in your MessageBox custom action fields and then, set the above properties accordingly from UI before displaying the message box.

For example, you can proceed like this:
- go to "Custom Actions" page and select your MessageBox custom action
- in its "Title" field add an installer property (e.g MY_TITLE)
- in the "Message" field add another property (e.g MY_MESSAGE)
- go to "Dialogs" page and remove the "Set installer property value" event for CustomActionData property
- before the "Execute custom action" -> MessageBox event add two "Set installer property value" events which will set the MY_TITLE and MY_MESSAGE properties accordingly
- build and run your project

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Messagebox message not working?

Hello,

This was fixed in version 10.5 of Advanced Installer released on September 02, 2013.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”