Result from Custom UI Action - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

CharlesS
Posts: 3
Joined: Thu May 07, 2009 9:57 am

Result from Custom UI Action

Hi,
I have an exe which I call from an Attached UI Custom Action. The action runs as a DoAction published event.
This exe tests whether a particular port is availble on the machine. (I can't write it in vbs as this is not possible)

How do I pass the result of the exe back to the installer to decide if to let the user to move to the next step.

Thanks.
-c
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Result from Custom UI Action

Hi,

Since EXE custom actions use a different process I'm afraid there are no easy ways to pass the result to the installer. The recommended approach would be to use a C++ DLL custom action. However, if you want to use an EXE you can try this approach:
- the EXE creates a registry entry with the result
- another custom action checks the registry entry and decides if the user can continue or not
- the "Cancel" button should run a custom action which deletes the registry entry if it exists (this should also run on the "Finish" button)

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”