Julian
Posts: 4
Joined: Fri Sep 03, 2010 10:08 am

Retrieve the return code of a custom action

Hi all,

How can I retrieve the return code of a custom action (to make changes in the UI in function of its value) ? We need more flexibility than:
Synchronous execution, check return code - the main thread of the installation waits for the custom action thread to complete. Then, the return code of the thread is checked. If it is not zero, the execution of the custom action is considered failed and the installation is canceled. Otherwise, the installation continues.
Can we set enviroment variables in our executables to be retrieved by Advanced Installer and show the value in a message box?

Do you know the release date for Advanced Installer 8.0?

best regards,

Julian
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Retrieve the return code of a custom action

Hi Julian,
Can we set enviroment variables in our executables to be retrieved by Advanced Installer and show the value in a message box?
The return code of a custom action is captured by Windows Installer, not Advanced Installer. You cannot display it in a message box but you
can create a verbose log and see it there.
Do you know the release date for Advanced Installer 8.0?
I'm afraid we don't have available on official release date for Advanced Installer 8.0. Unofficially, it should be released until the end of September.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Julian
Posts: 4
Joined: Fri Sep 03, 2010 10:08 am

Re: Retrieve the return code of a custom action

Hi Bogdan,

We have a dialog with IP and Port inputs and button to test connection. The button has a custom action (.EXE) that test the connection and returns a code with the result. I want to put a red/green circle to inform user. Can I achieve this with Advanced Installer? If not, can you suggest me a workaround?

Is there any ad hoc solution to validate de input texts? (check IPv4, range ports, etc...)

Thank you for your help,

Julian
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Retrieve the return code of a custom action

Hi Julian,
Can I achieve this with Advanced Installer?
Yes, simply set the button type to Icon or Bitmap and set the desired graphical resource.
Is there any ad hoc solution to validate de input texts? (check IPv4, range ports, etc...)
I'm afraid not, this must be handled by you using custom actions or custom conditions set for the events that are triggered by the push buttons.

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

Return to “Common Problems”