pmclean2
Posts: 7
Joined: Wed May 12, 2010 1:39 pm

How to display a message box on control events.

Hi,

I need to verify if a file exist in a path specified by the user at installation. To do that I created a custom search called G2_EXIST. I put this search on the published events of the Next button on my folder dialog. It's work. But now how to display a message to the user to tell him the specified path is invalid?

Thanks
Attachments
SelectFolder.jpg
SelectFolder.jpg (62.16 KiB) Viewed 9461 times
Simix_Setup.aip
(18.47 KiB) Downloaded 439 times
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to display a message box on control events.

Hi,

The easiest way is to create a new spawn dialog using published events. The spawn dialog will use the opposite condition for displaying itself.

Please let us know if you have other questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pmclean2
Posts: 7
Joined: Wed May 12, 2010 1:39 pm

Re: How to display a message box on control events.

It's work but only the first time. It seem my condition was not updated when I give a new path.

Do you know why?
Attachments
Simix_Setup.aip
(21.27 KiB) Downloaded 553 times
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to display a message box on control events.

Hi,
It's work but only the first time. It seem my condition was not updated when I give a new path.
This is correct because the search you have created is executed only once, during the standard action AppSearch. The value set during that action will be
the only value set by the search, it doesn't matter if you change the value of the edit box or not because the search will not be executed anymore.

The solution for what you want is a custom action that will make the search and set a property depending on the search result. The custom action can be called before the SpawnDialog published event
as it is explained in the following article.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”