Hello and welcome to Advanced Installer forums,
I am assuming that you are triggering the custom action from an UI control. In order to not advance to the next dialog, we can proceed as it follows:
- in case of failure, we will set an installer property to a value
- we will show the dialog based on that property
In order to get and set a property from within a custom action, please have a look over the
"How to set an installer property using custom actions" article.
Let's consider the following example. In case of failure, we will set the following:
As you can see, we have set the MY_PROP property to the value "1".
Based on this property, we will now not advanced to the next dialog. In our case, we will want to continue with the next dialog only when MY_PROP is different than "1" (because we have set it to "1" in case of a
failure).

- failure.png (237.77 KiB) Viewed 1838 times
As you can see, the custom action is scheduled to execute before the
"Display a specific dialog" event. The custom action will first execute and, if we are in the failure scenario, it will set the MY_PROP property to "1".
In our scenario, we want to display the next dialog only when MY_PROP propert is NOT equal to "1".
Hope this helps.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging