How to execute a custom action with dialog showed - Advanced Installer Community
xjluogang
Posts: 20
Joined: Sun Apr 14, 2013 3:24 pm

How to execute a custom action with dialog showed

Hi Guys,
How can I run a custom action (like VBScript) after a dialog has showed without button event trigger?
In my case, this dialog contain a list-box, and the "Next" button is disabled. When it has showed in screen, I want to run a custom action automatically without any user action, and this action will perform some conditions check and fill-back the status/message into list-box. If all the conditions are passed by check, I will set "Next" button as enabled status, so that user can continue to click it and going to next screen.
Mostly, my custom action will doing network check, port check, firewall check, etc., and it may take a while.
I don't know which event can be use in this case, "Init Envents" can't be use because it will be triggered before the dialog showing.

Any idea? Thanks a lot!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to execute a custom action with dialog showed

Hi,

Creating an "Init Event" should be the right solution for you. Can you please explain us why this type of event does not meet your requirements?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
xjluogang
Posts: 20
Joined: Sun Apr 14, 2013 3:24 pm

Re: How to execute a custom action with dialog showed

When I run the script in Init Event, the dialog will not show until the custom action complete, so I'm not sure whether I can do long task in this event or not.
Do you think trigger the custom action in this event is correct way even if it may take long time?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to execute a custom action with dialog showed

Yes, I think this is the right event type to achieve what you want.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
xjluogang
Posts: 20
Joined: Sun Apr 14, 2013 3:24 pm

Re: How to execute a custom action with dialog showed

Yes, you are right. :D
But it still can cause the next dialog delayed to show until the custom action executed done. Anyway, looks like this is only way to do that.

Advanced Installer have good support for users, as I always can get reply timely, this can save my time a lot, and this is why I choose this tool in my project. :D.
Thanks guys!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to execute a custom action with dialog showed

You're welcome. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”