What is the best practice to trigger rollback of an install from within a .Net Custom Action?
I have tried using the CA's return value, setting it to 1603 (ERROR_INSTALL_FAILURE). But this triggers a message box to appear saying "Error 2869. The dialog ErrorDlg has the error style bit set, but is not an error dialog".
Admittedly, rollback does then commence, but that isn't a great UI experience for the end user.
What I'm really after is an error page to appear in the installer's own UI, either before or after the rollback.
Failing that, I could show my own messagebox from within the custom action. Then return 1603.
Thanks in advance ...
Matthew