Thanks for your suggestion. The following seems to do what I want:
! Edit '3' to match the ID of your 'Select Install Folder' dialog
If %_SB_DIALOGID% Equals "3" Then
If %_SB_INSTALLDIR% File or Folder doesn't exist Then
Display Message Box "Please browse to find the XXX folder" -- "Installation Folder"
Cycle Loop
End
End