how to display a message box when a custom action has error - 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!

cydude
Posts: 16
Joined: Wed Mar 05, 2008 3:51 am

how to display a message box when a custom action has error

I have a custom action that causes a rollback if there is an error. I would like to display the error code to the user before the rollback. Any ideas?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that that this cannot be done for custom actions you cannot modify because it is not supported by Windows Installer. The only information available when a custom action fails is shown by:
- the error message box shown by Windows Installer
- the log of the installation (if you create one)

However, if you can modify the actual code of the custom action (for example, edit a C++ DLL), then you can do whatever you want from inside the custom action.

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

Return to “Common Problems”