I use a batch file for custom action on the next button of the dialog with the help of Execute Custom Action in published events.
I check the validation of the port number in a batch file.
If there is an error with the port number, I have called the VBScript message box in the same batch file to give a warning to the user.
Now at the same time when the user gets a warning, the installer should remain on the same dialog with a cursor on the edit box of the port number. But currently, the installer goes to the next dialog.
Here are some snippets of my batch file, custom action, and VBscript message box file.
What can I do to stay on the current dialog for wrong input?