Hi,
When you create a
"Display message box" custom action you can set a property based on the button the user presses (in your case YES or NO). Then based on the value of the property you set, the installation of your application must continue or stop.
Unfortunately, Advanced Installer does not have this feature, but you can create a simple custom action which will run only if the NO button was pressed and that custom action stops the installation.
I attached to this post a simple VBScript custom action which you can run right under your "Display message box" custom action with the following settings:
- create a "Launch attached file" custom action and choose the VBScript I attached here
- in the "Function" text field write the function found in that VBScript (in this case
ExitSetupFromVBS)
- in the "Condition" text field write the property you set with the return value of the "Display message box" custom action (i.e. MYPROP = "IDNO")
Let us know if this helped, otherwise give us more details about your scenario.
Best regards,
Eusebiu